diff --git a/webapp/src/components/modal.scss b/webapp/src/components/modal.scss index 3084820a5..36a501e41 100644 --- a/webapp/src/components/modal.scss +++ b/webapp/src/components/modal.scss @@ -1,7 +1,7 @@ .Modal { position: absolute; top: 25px; - left: -200px; + left: -230px; z-index: 10; min-width: 430px; diff --git a/webapp/src/components/shareBoardComponent.scss b/webapp/src/components/shareBoardComponent.scss new file mode 100644 index 000000000..b6669e0d2 --- /dev/null +++ b/webapp/src/components/shareBoardComponent.scss @@ -0,0 +1,13 @@ +.ShareBoardComponent { + display: flex; + flex-direction: column; + + > .row { + display: flex; + flex-direction: row; + } + + .spacer { + flex-grow: 1; + } +} \ No newline at end of file diff --git a/webapp/src/components/shareBoardComponent.tsx b/webapp/src/components/shareBoardComponent.tsx index fb3355b67..0d8c1816e 100644 --- a/webapp/src/components/shareBoardComponent.tsx +++ b/webapp/src/components/shareBoardComponent.tsx @@ -3,23 +3,54 @@ import React from 'react' import {injectIntl, IntlShape} from 'react-intl' +import Button from '../widgets/buttons/button' +import Switch from '../widgets/switch' + import Modal from './modal' +import './shareBoardComponent.scss' type Props = { onClose: () => void intl: IntlShape } -class ShareBoardComponent extends React.PureComponent { +type State = { + isShared?: boolean +} + +class ShareBoardComponent extends React.PureComponent { + state: State = {} + render(): JSX.Element { + const {intl} = this.props + return ( - {'TODO'} +
+
+
{intl.formatMessage({id: 'ShareBoard.share', defaultMessage: 'Publish to web and share this board to anyone'})}
+
+ +
+ {this.state.isShared && +
+ +
+ } +
) } + + private onShareChanged = (isOn: boolean) => { + // TODO + this.setState({isShared: isOn}) + } } export default injectIntl(ShareBoardComponent)