-
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.
Merge remote-tracking branch 'origin/web3authcoresdk' into account-ce…
…nter-mfa
- Loading branch information
Showing
22 changed files
with
156 additions
and
110 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
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
Oops, something went wrong.