Added Gab Deck initial mvp

• Added:
- Gab Deck initial mvp
This commit is contained in:
mgabdev
2020-12-05 23:47:48 -05:00
parent 2f798ca1bd
commit ba8e8942dc
22 changed files with 507 additions and 25 deletions

View File

@@ -14,6 +14,10 @@ class SidebarMorePopover extends React.PureComponent {
this.props.onOpenDisplayModal()
}
handleOnClosePopover = () => {
this.props.onClosePopover()
}
render() {
const { intl, isXS } = this.props
@@ -29,6 +33,11 @@ class SidebarMorePopover extends React.PureComponent {
title: intl.formatMessage(messages.help),
href: 'https://help.gab.com',
},
{
title: 'Gab Deck',
to: '/deck',
onClick: this.handleOnClosePopover,
},
{
title: intl.formatMessage(messages.display),
onClick: this.handleOnOpenDisplayModal,
@@ -66,6 +75,9 @@ const messages = defineMessages({
})
const mapDispatchToProps = (dispatch) => ({
onClosePopover() {
dispatch(closePopover())
},
onOpenDisplayModal: () => {
dispatch(closePopover())
dispatch(openModal(MODAL_DISPLAY_OPTIONS))