Merge pull request #2359 from coralproject/corl-427

[CORL-427] AddEmailAddressDialog should appear at the top
This commit is contained in:
Kim Gardner
2019-06-14 14:53:46 +01:00
committed by GitHub
2 changed files with 13 additions and 1 deletions
@@ -0,0 +1,6 @@
.dialog {
border: none;
box-shadow: 0 9px 46px 8px rgba(0, 0, 0, 0.14), 0 11px 15px -7px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.2);
width: 400px;
top: 10px;
}
@@ -17,6 +17,8 @@ import {
EmailAddressAdded,
} from '../components/AddEmailAddress';
import styles from './AddEmailAddressDialog.css';
class AddEmailAddressDialog extends React.Component {
state = {
step: 0,
@@ -72,7 +74,11 @@ class AddEmailAddressDialog extends React.Component {
} = this.props;
return (
<Dialog open={true} id="talk-plugin-local-auth-email-dialog">
<Dialog
open={true}
id="talk-plugin-local-auth-email-dialog"
className={styles.dialog}
>
{step === 0 && <AddEmailForm onSubmit={this.handleSubmit} />}
{step === 1 &&
!requireEmailConfirmation && (