| // @flow | |
| import * as React from 'react'; | |
| import EditForm from './editForm'; | |
| import ChannelList from './channelList'; | |
| import { SectionsContainer, Column } from 'src/components/settingsViews/style'; | |
| import RedirectSettings from './redirect'; | |
| import { ErrorBoundary, SettingsFallback } from 'src/components/error'; | |
| type Props = { | |
| communitySlug: string, | |
| community: Object, | |
| }; | |
| class Overview extends React.Component<Props> { | |
| render() { | |
| const { community, communitySlug } = this.props; | |
| return ( | |
| <SectionsContainer> | |
| <Column> | |
| <ErrorBoundary fallbackComponent={SettingsFallback}> | |
| <EditForm community={community} /> | |
| </ErrorBoundary> | |
| <ErrorBoundary fallbackComponent={SettingsFallback}> | |
| <RedirectSettings community={community} /> | |
| </ErrorBoundary> | |
| </Column> | |
| <Column> | |
| <ErrorBoundary fallbackComponent={SettingsFallback}> | |
| <ChannelList id={community.id} communitySlug={communitySlug} /> | |
| </ErrorBoundary> | |
| </Column> | |
| </SectionsContainer> | |
| ); | |
| } | |
| } | |
| export default Overview; | |