This commit is contained in:
mgabdev
2020-05-14 16:45:39 -04:00
parent 4acc21944c
commit 0626928899
30 changed files with 286 additions and 100 deletions

View File

@@ -13,6 +13,7 @@ import Heading from './heading'
import Text from './text'
import List from './list'
import { closeSidebar } from '../actions/sidebar'
import { openModal } from '../actions/modal'
import { shortNumberFormat } from '../utils/numbers'
import { me } from '../initial_state'
import { makeGetAccount } from '../selectors'
@@ -46,6 +47,9 @@ const mapStateToProps = (state) => ({
const mapDispatchToProps = (dispatch) => ({
onCloseSidebar: () => dispatch(closeSidebar()),
onOpenDisplayModel() {
dispatch(openModal())
}
})
export default @connect(mapStateToProps, mapDispatchToProps)
@@ -109,7 +113,7 @@ class SidebarXS extends ImmutablePureComponent {
},
{
icon: 'shop',
href: 'https://shop.gab.com',
href: 'https://shop.dissenter.com',
onClick: this.handleSidebarClose,
title: intl.formatMessage(messages.shop),
},
@@ -173,6 +177,19 @@ class SidebarXS extends ImmutablePureComponent {
onClick: this.handleSidebarClose,
title: intl.formatMessage(messages.filters),
},
{
// : todo :
icon: 'user',
onClick: this.handleSidebarClose, //on open display model
title: intl.formatMessage(messages.filters),
},
{
// : todo :
icon: 'user',
href: 'https://help.gab.com',
onClick: this.handleSidebarClose,
title: intl.formatMessage(messages.filters),
},
{
icon: 'user',
href: '/auth/sign_out',