mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-16 08:33:15 +05:30
Rename ScrollMotion -> SlideMotion
This commit is contained in:
parent
b62a60222b
commit
66d4d2ceb5
@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|||||||
import { FormattedMessage as Message } from 'react-intl';
|
import { FormattedMessage as Message } from 'react-intl';
|
||||||
import Helmet from 'react-helmet';
|
import Helmet from 'react-helmet';
|
||||||
|
|
||||||
import { ScrollMotion } from 'components/ui/motion';
|
import { SlideMotion } from 'components/ui/motion';
|
||||||
import { ScrollIntoView } from 'components/ui/scroll';
|
import { ScrollIntoView } from 'components/ui/scroll';
|
||||||
import { Input, Button, Form, FormModel, FormError } from 'components/ui/form';
|
import { Input, Button, Form, FormModel, FormError } from 'components/ui/form';
|
||||||
import { BackButton } from 'components/profile/ProfileForm';
|
import { BackButton } from 'components/profile/ProfileForm';
|
||||||
@ -130,7 +130,7 @@ export default class ChangeEmail extends Component {
|
|||||||
const isCodeSpecified = !!this.props.code;
|
const isCodeSpecified = !!this.props.code;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollMotion activeStep={activeStep}>
|
<SlideMotion activeStep={activeStep}>
|
||||||
{(new Array(STEPS_TOTAL)).fill(0).map((_, step) => {
|
{(new Array(STEPS_TOTAL)).fill(0).map((_, step) => {
|
||||||
const form = this.props.stepForms[step];
|
const form = this.props.stepForms[step];
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ export default class ChangeEmail extends Component {
|
|||||||
isActiveStep: step === activeStep
|
isActiveStep: step === activeStep
|
||||||
});
|
});
|
||||||
})}
|
})}
|
||||||
</ScrollMotion>
|
</SlideMotion>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import React, { Component } from 'react';
|
|||||||
import { Button, FormModel } from 'components/ui/form';
|
import { Button, FormModel } from 'components/ui/form';
|
||||||
import styles from 'components/profile/profileForm.scss';
|
import styles from 'components/profile/profileForm.scss';
|
||||||
import Stepper from 'components/ui/stepper';
|
import Stepper from 'components/ui/stepper';
|
||||||
import { ScrollMotion } from 'components/ui/motion';
|
import { SlideMotion } from 'components/ui/motion';
|
||||||
import { ScrollIntoView } from 'components/ui/scroll';
|
import { ScrollIntoView } from 'components/ui/scroll';
|
||||||
import logger from 'services/logger';
|
import logger from 'services/logger';
|
||||||
import mfa from 'services/api/mfa';
|
import mfa from 'services/api/mfa';
|
||||||
@ -102,7 +102,7 @@ export default class MfaEnable extends Component<Props, {
|
|||||||
const {activeStep, secret, qrCodeSrc} = this.state;
|
const {activeStep, secret, qrCodeSrc} = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollMotion activeStep={activeStep}>
|
<SlideMotion activeStep={activeStep}>
|
||||||
{[
|
{[
|
||||||
<Instructions key="step1" />,
|
<Instructions key="step1" />,
|
||||||
<KeyForm key="step2"
|
<KeyForm key="step2"
|
||||||
@ -116,7 +116,7 @@ export default class MfaEnable extends Component<Props, {
|
|||||||
onInvalid={() => this.forceUpdate()}
|
onInvalid={() => this.forceUpdate()}
|
||||||
/>
|
/>
|
||||||
]}
|
]}
|
||||||
</ScrollMotion>
|
</SlideMotion>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ import React, { Component } from 'react';
|
|||||||
import { Motion, spring } from 'react-motion';
|
import { Motion, spring } from 'react-motion';
|
||||||
import MeasureHeight from 'components/MeasureHeight';
|
import MeasureHeight from 'components/MeasureHeight';
|
||||||
|
|
||||||
import styles from './scroll-motion.scss';
|
import styles from './slide-motion.scss';
|
||||||
|
|
||||||
export default class ScrollMotion extends Component<{
|
export default class SlideMotion extends Component<{
|
||||||
activeStep: number,
|
activeStep: number,
|
||||||
children: *
|
children: *
|
||||||
}, {
|
}, {
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow
|
||||||
export { default as ScrollMotion } from './ScrollMotion';
|
export { default as SlideMotion } from './SlideMotion';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user