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

41 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 SignUpPanel from '../components/panel/sign_up_panel'
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
import TrendsPanel from '../components/panel/trends_panel'
import ProgressPanel from '../components/panel/progress_panel'
import UserPanel from '../components/user_panel'
import Search from '../components/search'
import PageLayout from '../components/page_layout'
import TimelineComposeBlock from '../components/timeline_compose_block'
2019-08-13 16:54:29 +01:00
export default class HomePage extends PureComponent {
2020-02-08 06:12:01 +00:00
render() {
const { children } = this.props
return (
2020-02-03 18:24:24 +00:00
<PageLayout
layout={{
2020-02-08 22:57:09 +00:00
HEADER: <span>hello</span>,
HEADER_RIGHT: <Search />,
RIGHT: (
<Fragment>
2020-02-08 06:12:01 +00:00
<UserPanel />
<WhoToFollowPanel />
<TrendsPanel />
<GroupSidebarPanel />
2020-02-05 22:45:48 +00:00
<SignUpPanel />
<ProgressPanel />
<LinkFooter />
</Fragment>
2020-02-03 18:24:24 +00:00
),
}}
>
2020-02-08 06:12:01 +00:00
<TimelineComposeBlock autoFocus={false} shouldCondense />
2020-02-08 22:57:09 +00:00
<div className={[styles.default, styles.borderBottom1PX, styles.borderColorSubtle2, styles.marginBottom15PX, styles.width100PC].join(' ')} />
2020-02-08 06:12:01 +00:00
{children}
2020-02-03 18:24:24 +00:00
</PageLayout>
)
}
}