mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-28 07:50:32 +05:30
#365: fix warning on bsod screen
This commit is contained in:
parent
3f869f92e2
commit
50d753e006
@ -6,14 +6,14 @@ import { IntlProvider as OrigIntlProvider } from 'react-intl';
|
|||||||
class IntlProvider extends Component {
|
class IntlProvider extends Component {
|
||||||
static displayName = 'IntlProvider';
|
static displayName = 'IntlProvider';
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
locale: PropTypes.string.isRequired,
|
locale: PropTypes.string,
|
||||||
messages: PropTypes.objectOf(PropTypes.string).isRequired,
|
messages: PropTypes.objectOf(PropTypes.string),
|
||||||
children: PropTypes.element
|
children: PropTypes.element
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<OrigIntlProvider {...this.props} />
|
<OrigIntlProvider locale="en" {...this.props} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ export default function BSoD({store}: {store: *}) {
|
|||||||
<IntlProvider store={store}>
|
<IntlProvider store={store}>
|
||||||
<div className={styles.body}>
|
<div className={styles.body}>
|
||||||
<canvas className={styles.canvas}
|
<canvas className={styles.canvas}
|
||||||
ref={(el: ?HTMLCanvasElement) => new BoxesField(el)}
|
ref={(el: ?HTMLCanvasElement) => el && new BoxesField(el)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className={styles.wrapper}>
|
<div className={styles.wrapper}>
|
||||||
|
Loading…
Reference in New Issue
Block a user