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

38 lines
1.1 KiB
JavaScript

import { Fragment } from 'react';
import WhoToFollowPanel from '../components/panel';
import LinkFooter from '../components/link_footer';
import PromoPanel from '../components/promo_panel';
import UserPanel from '../components/user_panel';
import GroupSidebarPanel from '../features/groups/sidebar_panel';
import ColumnsArea from '../components/columns_area';
import TimelineComposeBlock from '../components/timeline_compose_block';
export default class HomePage extends PureComponent {
render () {
const {children} = this.props;
return (
<ColumnsArea
layout={{
TOP: null,
RIGHT: (
<Fragment>
<GroupSidebarPanel />
{ /* <WhoToFollowPanel /> */ }
</Fragment>
),
LEFT: (
<Fragment>
<UserPanel />
<PromoPanel />
<LinkFooter />
</Fragment>
)
}}
>
<TimelineComposeBlock size={46} shouldCondense={true} autoFocus={false} />
{children}
</ColumnsArea>
)
}
}