Refactored collections store and layout components

This commit is contained in:
Jori Lallo
2017-05-26 12:56:10 -07:00
parent 1247fd1cd2
commit 201f90030c
29 changed files with 382 additions and 348 deletions

View File

@ -11,6 +11,7 @@ import SettingsStore from './SettingsStore';
import Layout, { Title } from 'components/Layout';
import CenteredContent from 'components/CenteredContent';
import SlackAuthLink from 'components/SlackAuthLink';
import PageTitle from 'components/PageTitle';
@observer class Settings extends React.Component {
store: SettingsStore;
@ -25,12 +26,8 @@ import SlackAuthLink from 'components/SlackAuthLink';
const showSlackSettings = DEPLOYMENT === 'hosted';
return (
<Layout
title={title}
titleText="Settings"
search={false}
loading={this.store.isFetching}
>
<Layout title={title} search={false} loading={this.store.isFetching}>
<PageTitle title="Settings" />
<CenteredContent>
{showSlackSettings &&
<div className={styles.section}>