Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Aug 17, 2023
1 parent 660aa2a commit 30ca6de
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/pages/settings/Security/TwoFactorAuth/TwoFactorAuthSteps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import CONST from '../../../../CONST';
import * as TwoFactorAuthActions from '../../../../libs/actions/TwoFactorAuthActions';
import TwoFactorAuthContext from './TwoFactorAuthContext';
import {defaultAccount, TwoFactorAuthPropTypes} from './TwoFactorAuthPropTypes';
import useAnimatedStepContext from "../../../../components/AnimatedStep/useAnimatedStepContext";
import useAnimatedStepContext from '../../../../components/AnimatedStep/useAnimatedStepContext';

function TwoFactorAuthSteps({account = defaultAccount}) {
const [currentStep, setCurrentStep] = useState(CONST.TWO_FACTOR_AUTH_STEPS.CODES);
Expand All @@ -33,11 +33,14 @@ function TwoFactorAuthSteps({account = defaultAccount}) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [account.requiresTwoFactorAuth]);

const handleSetStep = useCallback((step, animationDirection = CONST.ANIMATION_DIRECTION.IN) => {
setAnimationDirection(animationDirection);
TwoFactorAuthActions.setTwoFactorAuthStep(step);
setCurrentStep(step);
}, [setAnimationDirection]);
const handleSetStep = useCallback(
(step, animationDirection = CONST.ANIMATION_DIRECTION.IN) => {
setAnimationDirection(animationDirection);
TwoFactorAuthActions.setTwoFactorAuthStep(step);
setCurrentStep(step);
},
[setAnimationDirection],
);

const renderStep = () => {
switch (currentStep) {
Expand Down

0 comments on commit 30ca6de

Please sign in to comment.