diff --git a/src/components/profile/changeEmail/ChangeEmail.js b/src/components/profile/changeEmail/ChangeEmail.js
index 11ea1b7..8b18623 100644
--- a/src/components/profile/changeEmail/ChangeEmail.js
+++ b/src/components/profile/changeEmail/ChangeEmail.js
@@ -3,13 +3,12 @@ import PropTypes from 'prop-types';
import { FormattedMessage as Message } from 'react-intl';
import Helmet from 'react-helmet';
-import { Motion, spring } from 'react-motion';
+import { ScrollMotion } from 'components/ui/motion';
import { Input, Button, Form, FormModel, FormError } from 'components/ui/form';
import { BackButton } from 'components/profile/ProfileForm';
import styles from 'components/profile/profileForm.scss';
import helpLinks from 'components/auth/helpLinks.scss';
-import MeasureHeight from 'components/MeasureHeight';
import Stepper from 'components/ui/stepper';
import changeEmail from './changeEmail.scss';
@@ -127,58 +126,26 @@ export default class ChangeEmail extends Component {
const {activeStep, code} = this.state;
const isCodeSpecified = !!this.props.code;
- const activeStepHeight = this.state[`step${activeStep}Height`] || 0;
-
- // a hack to disable height animation on first render
- const isHeightMeasured = this.isHeightMeasured;
- this.isHeightMeasured = isHeightMeasured || activeStepHeight > 0;
-
return (
-
{newEmail ? (
diff --git a/src/components/profile/changeEmail/changeEmail.scss b/src/components/profile/changeEmail/changeEmail.scss
index 0120926..2c76768 100644
--- a/src/components/profile/changeEmail/changeEmail.scss
+++ b/src/components/profile/changeEmail/changeEmail.scss
@@ -4,14 +4,3 @@
overflow: hidden;
line-height: 1.2;
}
-
-.stepForms {
- white-space: nowrap;
-}
-
-.stepForm {
- display: inline-block;
- white-space: normal;
- vertical-align: top;
- max-width: 100%;
-}