diff options
author | 2022-05-06 19:06:00 -0500 | |
---|---|---|
committer | 2022-05-06 19:06:00 -0500 | |
commit | 4df01bf76dd0c19d29587571131555639bf2b844 (patch) | |
tree | f19565f06da9d6c796bd3962d6f28a4fcff0da63 /src/components/util | |
parent | Regenerate i18n file (diff) | |
download | ferdium-app-4df01bf76dd0c19d29587571131555639bf2b844.tar.gz ferdium-app-4df01bf76dd0c19d29587571131555639bf2b844.tar.zst ferdium-app-4df01bf76dd0c19d29587571131555639bf2b844.zip |
Use components defined in the codebase; Extract some text for i18n purposes.
Diffstat (limited to 'src/components/util')
-rw-r--r-- | src/components/util/ErrorBoundary/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/util/ErrorBoundary/index.js b/src/components/util/ErrorBoundary/index.js index 6a8b126f1..8687cc09f 100644 --- a/src/components/util/ErrorBoundary/index.js +++ b/src/components/util/ErrorBoundary/index.js | |||
@@ -4,6 +4,7 @@ import injectSheet from 'react-jss'; | |||
4 | import { defineMessages, injectIntl } from 'react-intl'; | 4 | import { defineMessages, injectIntl } from 'react-intl'; |
5 | 5 | ||
6 | import Button from '../../ui/Button'; | 6 | import Button from '../../ui/Button'; |
7 | import { H1 } from '../../ui/headline'; | ||
7 | 8 | ||
8 | import styles from './styles'; | 9 | import styles from './styles'; |
9 | 10 | ||
@@ -39,9 +40,9 @@ class ErrorBoundary extends Component { | |||
39 | if (this.state.hasError) { | 40 | if (this.state.hasError) { |
40 | return ( | 41 | return ( |
41 | <div className={classes.component}> | 42 | <div className={classes.component}> |
42 | <h1 className={classes.title}> | 43 | <H1 className={classes.title}> |
43 | {intl.formatMessage(messages.headline)} | 44 | {intl.formatMessage(messages.headline)} |
44 | </h1> | 45 | </H1> |
45 | <Button | 46 | <Button |
46 | label={intl.formatMessage(messages.action)} | 47 | label={intl.formatMessage(messages.action)} |
47 | buttonType="inverted" | 48 | buttonType="inverted" |