File size: 1,008 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
// @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;
|