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

49 lines
1.4 KiB
JavaScript
Raw Normal View History

2020-02-08 06:12:01 +00:00
import { Fragment } from 'react'
import GroupSidebarPanel from '../components/panel/groups_panel'
import LinkFooter from '../components/link_footer'
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
import ProgressPanel from '../components/panel/progress_panel'
2020-02-19 23:57:07 +00:00
import UserPanel from '../components/panel/user_panel'
import TrendsPanel from '../components/panel/trends_panel'
import HashtagsPanel from '../components/panel/hashtags_panel'
2020-02-17 17:50:29 +00:00
import DefaultLayout from '../components/layouts/default_layout'
2020-02-08 06:12:01 +00:00
import TimelineComposeBlock from '../components/timeline_compose_block'
2020-02-19 23:57:07 +00:00
import Divider from '../components/divider'
2019-08-13 16:54:29 +01:00
export default class HomePage extends PureComponent {
2020-02-19 23:57:07 +00:00
handleEditHomeTimeline () {
console.log("handleEditHomeTimeline")
}
2020-02-08 06:12:01 +00:00
render() {
const { children } = this.props
return (
2020-02-17 17:50:29 +00:00
<DefaultLayout
2020-02-14 00:40:04 +00:00
title='Home'
2020-02-19 23:57:07 +00:00
actions={[
{
icon: 'ellipsis',
onClick: this.handleEditHomeTimeline
},
]}
2020-02-17 17:50:29 +00:00
layout={(
<Fragment>
<UserPanel />
<ProgressPanel />
2020-02-19 23:57:07 +00:00
<TrendsPanel />
<HashtagsPanel />
2020-02-17 17:50:29 +00:00
<WhoToFollowPanel />
<GroupSidebarPanel />
<LinkFooter />
</Fragment>
)}
>
2020-02-08 06:12:01 +00:00
<TimelineComposeBlock autoFocus={false} shouldCondense />
2020-02-19 23:57:07 +00:00
<Divider />
2020-02-08 06:12:01 +00:00
{children}
2020-02-17 17:50:29 +00:00
</DefaultLayout>
)
}
}