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

46 lines
1.0 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'
import DefaultLayout from '../components/layouts/default_layout'
export default class ListsPage extends PureComponent {
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>
)
}
}