-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Address design review, restructure components (#2683)
- Loading branch information
1 parent
f31099b
commit 5d05596
Showing
17 changed files
with
106 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...gs/SignerAccountMFA/PasswordForm.test.tsx → ...urityLogin/SocialSignerMFA/index.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Grid, Paper, Typography } from '@mui/material' | ||
import SocialSignerMFA from '@/components/settings/SecurityLogin/SocialSignerMFA' | ||
import SocialSignerExport from '@/components/settings/SecurityLogin/SocialSignerExport' | ||
import useWallet from '@/hooks/wallets/useWallet' | ||
import { isSocialLoginWallet } from '@/services/mpc/module' | ||
|
||
const SecurityLogin = () => { | ||
const wallet = useWallet() | ||
|
||
const isSocialLogin = isSocialLoginWallet(wallet?.label) | ||
|
||
if (!isSocialLogin) { | ||
return ( | ||
<Paper sx={{ p: 4 }}> | ||
<Typography>You are currently not logged in with a social login signer.</Typography> | ||
</Paper> | ||
) | ||
} | ||
|
||
return ( | ||
<> | ||
<Paper sx={{ p: 4 }}> | ||
<Grid container spacing={3}> | ||
<Grid item lg={4} xs={12}> | ||
<Typography variant="h4" fontWeight="bold" mb={1}> | ||
Multi-factor Authentication | ||
</Typography> | ||
</Grid> | ||
|
||
<Grid item xs> | ||
<SocialSignerMFA /> | ||
</Grid> | ||
</Grid> | ||
</Paper> | ||
<Paper sx={{ p: 4, mt: 2 }}> | ||
<Grid container spacing={3}> | ||
<Grid item lg={4} xs={12}> | ||
<Typography variant="h4" fontWeight="bold" mb={1}> | ||
Social login signer export | ||
</Typography> | ||
</Grid> | ||
<Grid item xs> | ||
<SocialSignerExport /> | ||
</Grid> | ||
</Grid> | ||
</Paper> | ||
</> | ||
) | ||
} | ||
|
||
export default SecurityLogin |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { NextPage } from 'next' | ||
import Head from 'next/head' | ||
|
||
import SettingsHeader from '@/components/settings/SettingsHeader' | ||
import SecurityLogin from '@/components/settings/SecurityLogin' | ||
|
||
const SecurityLoginPage: NextPage = () => { | ||
return ( | ||
<> | ||
<Head> | ||
<title>{'Safe{Wallet} – Settings – Security & Login'}</title> | ||
</Head> | ||
|
||
<SettingsHeader /> | ||
|
||
<main> | ||
<SecurityLogin /> | ||
</main> | ||
</> | ||
) | ||
} | ||
|
||
export default SecurityLoginPage |
This file was deleted.
Oops, something went wrong.