diff options
Diffstat (limited to 'web-ui/src/account_recovery')
-rw-r--r-- | web-ui/src/account_recovery/account_recovery.js | 14 | ||||
-rw-r--r-- | web-ui/src/account_recovery/page.js | 8 |
2 files changed, 13 insertions, 9 deletions
diff --git a/web-ui/src/account_recovery/account_recovery.js b/web-ui/src/account_recovery/account_recovery.js index 6c12e326..eac14bf7 100644 --- a/web-ui/src/account_recovery/account_recovery.js +++ b/web-ui/src/account_recovery/account_recovery.js @@ -20,16 +20,16 @@ import { render } from 'react-dom' import a11y from 'react-a11y' import { I18nextProvider } from 'react-i18next' -import Page from './page' -import i18n from '../i18n' - import 'font-awesome/scss/font-awesome.scss' -if(process.env.NODE_ENV === 'development') a11y(React); +import PageWrapper from './page' +import i18n from '../i18n' + +if (process.env.NODE_ENV === 'development') a11y(React) render( - <I18nextProvider i18n={ i18n }> - <Page/> + <I18nextProvider i18n={i18n}> + <PageWrapper /> </I18nextProvider>, document.getElementById('root') -); +) diff --git a/web-ui/src/account_recovery/page.js b/web-ui/src/account_recovery/page.js index d1bcb464..396788e7 100644 --- a/web-ui/src/account_recovery/page.js +++ b/web-ui/src/account_recovery/page.js @@ -32,8 +32,8 @@ export const Page = ({ t }) => ( <InputField name='email' label={t('backup-account.input-label')} /> <SubmitButton buttonText={t('backup-account.button')} /> <div> - <a href="/"> - <i className="fa fa-angle-left" aria-hidden="true"></i> + <a href='/'> + <i className='fa fa-angle-left' aria-hidden='true' /> <span>{t('back-to-inbox')}</span> </a> </div> @@ -41,4 +41,8 @@ export const Page = ({ t }) => ( </div> ) +Page.propTypes = { + t: React.PropTypes.func.isRequired +} + export default translate('', { wait: true })(Page) |