diff --git a/client/less/main.less b/client/less/main.less index 814a479b8a..66e35cc8f8 100644 --- a/client/less/main.less +++ b/client/less/main.less @@ -695,27 +695,6 @@ code { z-index: 20000 !important; } -.email-settings { - @media (max-width: 768px) { - text-align: center; - } -} - -.toggle-btn-group { - float: right; - .btn[disabled] { - opacity: 1; - } - @media (max-width: 768px) { - float: none; - .btn-toggle { - margin-top: 10px; - margin-bottom: 20px; - } - } -} - - //uncomment this to see the dimensions of all elements outlined in red //* { // border-color: red; diff --git a/common/app/routes/Settings/Email-Setting.jsx b/common/app/routes/Settings/Email-Setting.jsx index 2cf9700d34..59e343d214 100644 --- a/common/app/routes/Settings/Email-Setting.jsx +++ b/common/app/routes/Settings/Email-Setting.jsx @@ -1,15 +1,10 @@ import PropTypes from 'prop-types'; import React from 'react'; -import { - ToggleButtonGroup, - ToggleButton, - Button, - Row, - Col -} from 'react-bootstrap'; +import { Button, Row, Col } from 'react-bootstrap'; +import TB from './Toggle-Button'; import FA from 'react-fontawesome'; -import classnames from 'classnames'; +import ns from './ns.json'; import { onRouteUpdateEmail } from './redux'; import { Link } from '../../Router'; @@ -66,7 +61,7 @@ export default function EmailSettings({ ); } return ( -
{ email } @@ -84,45 +79,10 @@ export default function EmailSettings({