summaryrefslogtreecommitdiff
path: root/web-ui/src/account_recovery
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-07 19:46:45 -0200
committerAnike Arni <aarni@thoughtworks.com>2017-02-08 13:51:36 -0200
commit7f76c79319bf0817222fc88011fd870d97648963 (patch)
tree0931901230ed645e8a6d7d17081e1769392ec928 /web-ui/src/account_recovery
parenta1c384cebd80e177389ef79c2de6400db986aaa6 (diff)
[#922] Adds eslint for react and es6 files
Diffstat (limited to 'web-ui/src/account_recovery')
-rw-r--r--web-ui/src/account_recovery/account_recovery.js14
-rw-r--r--web-ui/src/account_recovery/page.js8
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)