Download spectrum/src/components/error/SettingsFallback.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/error/SettingsFallback.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/error/SettingsFallback.js
-
curl -L -o SettingsFallback.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/src/components/error/SettingsFallback.js
1.01 kB
| // @flow | |
| import * as React from 'react'; | |
| import { | |
| SectionCard, | |
| SectionTitle, | |
| SectionSubtitle, | |
| SectionCardFooter, | |
| } from 'src/components/settingsViews/style'; | |
| import { PrimaryButton } from 'src/components/button'; | |
| class SettingsFallback extends React.Component<{}> { | |
| render() { | |
| return ( | |
| <SectionCard> | |
| <SectionTitle> | |
| <span | |
| role="img" | |
| aria-label="sad emoji" | |
| style={{ marginRight: '8px' }} | |
| > | |
| 😔 | |
| </span>{' '} | |
| Something has gone wrong | |
| </SectionTitle> | |
| <SectionSubtitle> | |
| There was an error loading this information. Our team has been alerted | |
| and will fix this as soon as possible. | |
| </SectionSubtitle> | |
| <SectionCardFooter> | |
| <PrimaryButton onClick={() => window.location.reload(true)}> | |
| Refresh the page | |
| </PrimaryButton> | |
| </SectionCardFooter> | |
| </SectionCard> | |
| ); | |
| } | |
| } | |
| export default SettingsFallback; | |