gab-social/app/javascript/gabsocial/pages/lists_page.js

50 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-02-19 23:57:07 +00:00
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'
2020-02-24 21:56:07 +00:00
import DefaultLayout from '../layouts/default_layout'
2020-02-19 23:57:07 +00:00
export default class ListsPage extends PureComponent {
2020-03-12 16:09:15 +00:00
componentDidMount() {
document.title = 'Lists - Gab'
}
2020-02-19 23:57:07 +00:00
handleClickNewList () {
console.log("handleClickNewList")
}
handleClickEditLists () {
console.log("handleClickEditLists")
}
render() {
const { children } = this.props
return (
<DefaultLayout
title='Lists'
actions={[
{
2020-02-21 00:57:29 +00:00
icon: 'list-delete',
2020-02-19 23:57:07 +00:00
onClick: this.handleClickEditLists
},
{
2020-02-21 00:57:29 +00:00
icon: 'list-add',
2020-02-19 23:57:07 +00:00
onClick: this.handleClickNewList
},
]}
layout={(
<Fragment>
<TrendsPanel />
<WhoToFollowPanel />
<LinkFooter />
</Fragment>
)}
showBackBtn
>
{children}
</DefaultLayout>
)
}
}