Download spectrum/src/views/communitySettings/components/overview.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/communitySettings/components/overview.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/views/communitySettings/components/overview.js
-
curl -L -o overview.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/communitySettings/components/overview.js
1.12 kB
| // @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; | |