gab-social/app/javascript/gabsocial/pages/lists_page.js
2020-03-12 12:09:15 -04:00

50 lines
1.1 KiB
JavaScript

import { Fragment } from 'react'
import LinkFooter from '../components/link_footer'
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
import TrendsPanel from '../components/panel/trends_panel'
import DefaultLayout from '../layouts/default_layout'
export default class ListsPage extends PureComponent {
componentDidMount() {
document.title = 'Lists - Gab'
}
handleClickNewList () {
console.log("handleClickNewList")
}
handleClickEditLists () {
console.log("handleClickEditLists")
}
render() {
const { children } = this.props
return (
<DefaultLayout
title='Lists'
actions={[
{
icon: 'list-delete',
onClick: this.handleClickEditLists
},
{
icon: 'list-add',
onClick: this.handleClickNewList
},
]}
layout={(
<Fragment>
<TrendsPanel />
<WhoToFollowPanel />
<LinkFooter />
</Fragment>
)}
showBackBtn
>
{children}
</DefaultLayout>
)
}
}