Skip to content

Commit 18bf95c

Browse files
committed
update mobile design
1 parent 0080bc3 commit 18bf95c

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

src/shared/components/Settings/Account/Security/index.jsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import VerificationListener from './VerificationListener';
1717
import './styles.scss';
1818

1919
export default function Security({
20-
usermfa, getUser2fa, updateUser2fa, updateUserDice, getNewDiceConnection,
20+
usermfa, updateUser2fa, updateUserDice, getNewDiceConnection,
2121
getDiceConnection, tokenV3, handle, emailAddress,
2222
}) {
2323
const [setupStep, setSetupStep] = useState(-1);
@@ -123,11 +123,6 @@ export default function Security({
123123
}
124124
};
125125

126-
const finishSetup = () => {
127-
getUser2fa(userId, tokenV3);
128-
closeSetup();
129-
};
130-
131126
useInterval(verifyConnection, setupStep === 1 && isConnVerifyRunning ? 5000 : null);
132127

133128
const setupStepNodes = [
@@ -219,7 +214,7 @@ export default function Security({
219214
leftButtonName="Cancel"
220215
leftButtonClick={closeSetup}
221216
rightButtonName="Finish"
222-
rightButtonClick={finishSetup}
217+
rightButtonClick={closeSetup}
223218
>
224219
<div styleName="step-body">
225220
<div styleName="step-title">
@@ -245,7 +240,7 @@ export default function Security({
245240
leftButtonName="Cancel"
246241
leftButtonClick={closeSetup}
247242
rightButtonName="Finish"
248-
rightButtonClick={finishSetup}
243+
rightButtonClick={closeSetup}
249244
>
250245
<div styleName="step-body">
251246
<div styleName="step-title-container">
@@ -320,9 +315,12 @@ export default function Security({
320315
<div styleName="info-first-line">
321316
DICE ID Authenticator App
322317
</div>
323-
<div styleName="info-second-line">
318+
<div styleName="info-second-line dice-info">
324319
DICE ID authentication application
325320
</div>
321+
<div styleName="info-second-line dice-info-mobile">
322+
{diceChecked ? 'DICE ID Authenticator is enabled.' : 'Please set up DICE ID Authenticator from your desktop device'}
323+
</div>
326324
</div>
327325
{diceChecked
328326
? (
@@ -359,7 +357,6 @@ export default function Security({
359357

360358
Security.propTypes = {
361359
usermfa: PT.shape().isRequired,
362-
getUser2fa: PT.func.isRequired,
363360
updateUser2fa: PT.func.isRequired,
364361
updateUserDice: PT.func.isRequired,
365362
getNewDiceConnection: PT.func.isRequired,

src/shared/components/Settings/Account/Security/styles.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,20 @@
8989
line-height: 24px;
9090
color: $color-black-60;
9191

92+
&.dice-info-mobile {
93+
display: none;
94+
}
95+
9296
@include upto-sm {
9397
padding-right: 0;
98+
99+
&.dice-info {
100+
display: none;
101+
}
102+
103+
&.dice-info-mobile {
104+
display: block;
105+
}
94106
}
95107
}
96108
}

0 commit comments

Comments
 (0)