accounts-frontend/src/components/ui/bsod/BSoD.jsx

38 lines
1.4 KiB
React
Raw Normal View History

2016-07-29 23:25:19 +05:30
import React from 'react';
import { FormattedMessage as Message } from 'react-intl';
import { IntlProvider } from 'components/i18n';
import appInfo from 'components/auth/appInfo/AppInfo.intl.json';
import messages from './BSoD.intl.json';
import styles from './styles.scss';
// TODO: probably it is better to render this view from the App view
// to remove dependencies from store and IntlProvider
export default function BSoD({store}) {
2016-07-29 23:25:19 +05:30
return (
<IntlProvider store={store}>
<div className={styles.body}>
<div className={styles.wrapper}>
<div className={styles.title}>
<Message {...appInfo.appName} />
</div>
<div className={styles.lineWithMargin}>
<Message {...messages.criticalErrorHappened} />
</div>
<div className={styles.line}>
<Message {...messages.reloadPageOrContactUs} />
</div>
<a href="mailto:support@ely.by" className={styles.support}>
support@ely.by
</a>
<div className={styles.easterEgg}>
<Message {...messages.alsoYouCanInteractWithBackground}/>
</div>
</div>
</div>
</IntlProvider>
2016-07-29 23:25:19 +05:30
);
}