From 9a472dd63143d7b5357d037d571d3c372d2a0a40 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Tue, 19 Jun 2018 12:02:38 +0530 Subject: [PATCH] fix: update email settings --- .../Settings/components/Email-Settings.jsx | 34 +++++++------------ .../routes/Settings/components/EmailForm.jsx | 14 ++++++-- .../Settings/components/SectionHeader.jsx | 2 +- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/common/app/routes/Settings/components/Email-Settings.jsx b/common/app/routes/Settings/components/Email-Settings.jsx index 7544f15512..f1489cc1fc 100644 --- a/common/app/routes/Settings/components/Email-Settings.jsx +++ b/common/app/routes/Settings/components/Email-Settings.jsx @@ -13,29 +13,13 @@ import { } from 'react-bootstrap'; import TB from '../Toggle-Button'; -// import EmailForm from './EmailForm.jsx'; +import EmailForm from './EmailForm.jsx'; import { Link } from '../../../Router'; -import { FullWidthRow } from '../../../helperComponents'; +import { FullWidthRow, Spacer } from '../../../helperComponents'; import SectionHeader from './SectionHeader.jsx'; import { userSelector } from '../../../redux'; import { onRouteUpdateEmail, updateMyEmail, updateUserBackend } from '../redux'; -/** - Removed functionality until we can update auth0 at the same time - - - - - - - - - - - */ - const mapStateToProps = createSelector( userSelector, ({ @@ -117,8 +101,9 @@ class EmailSettings extends PureComponent { You do not have an email associated with this account.

- - + + + ); } @@ -139,8 +124,13 @@ class EmailSettings extends PureComponent { } - - + + + + diff --git a/common/app/routes/Settings/components/EmailForm.jsx b/common/app/routes/Settings/components/EmailForm.jsx index 4d795ba37c..4751589859 100644 --- a/common/app/routes/Settings/components/EmailForm.jsx +++ b/common/app/routes/Settings/components/EmailForm.jsx @@ -79,10 +79,20 @@ class EmailForm extends PureComponent { return (
+ + + Current Email + + +

+ { this.props.email } +

+ +
- Email + New Email @@ -111,7 +121,7 @@ class EmailForm extends PureComponent { - Confirm Email + Confirm New Email diff --git a/common/app/routes/Settings/components/SectionHeader.jsx b/common/app/routes/Settings/components/SectionHeader.jsx index ce9a97fbc0..ed92678f33 100644 --- a/common/app/routes/Settings/components/SectionHeader.jsx +++ b/common/app/routes/Settings/components/SectionHeader.jsx @@ -13,7 +13,7 @@ const propTypes = { function SectionHeader({ children }) { return ( -

{ children }

+

{ children }


);