From 2b394c18697457772e59d32a74edd270b70cba49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20V=C3=A1gner?= Date: Tue, 2 Oct 2018 20:32:54 +0200 Subject: [PATCH] Address review comments and fix lint errors --- src/components/structures/UserSettings.js | 16 ++++++++-------- src/components/views/elements/AppWarning.js | 1 - src/components/views/globals/CookieBar.js | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 7b79eebbb6..129278907f 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -1233,10 +1233,10 @@ module.exports = React.createClass({ value={this.presentableTextForThreepid(val)} disabled /> - - {_t("Remove")} + - + ); }); @@ -1258,9 +1258,9 @@ module.exports = React.createClass({ blurToCancel={false} onValueChanged={this._onAddEmailEditFinished} /> - - {_t("Add")} - +
+ +
); } @@ -1339,14 +1339,14 @@ module.exports = React.createClass({ - +
- +
diff --git a/src/components/views/elements/AppWarning.js b/src/components/views/elements/AppWarning.js index 60809f5ca1..38d3476d53 100644 --- a/src/components/views/elements/AppWarning.js +++ b/src/components/views/elements/AppWarning.js @@ -1,6 +1,5 @@ import React from 'react'; // eslint-disable-line no-unused-vars import PropTypes from 'prop-types'; -import { _t } from '../../../languageHandler'; const AppWarning = (props) => { return ( diff --git a/src/components/views/globals/CookieBar.js b/src/components/views/globals/CookieBar.js index 3dc618edf5..deb1cbffa8 100644 --- a/src/components/views/globals/CookieBar.js +++ b/src/components/views/globals/CookieBar.js @@ -95,7 +95,7 @@ export default class CookieBar extends React.Component { { _t("Yes, I want to help!") }
- {_t('Close')}/ + {_t('Close')} );