-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disable blind signing by default (#3605)
* feat: disable blind signing by default * fix: review issues * fix: remove whitespace, always link
- Loading branch information
Showing
8 changed files
with
201 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { useAppDispatch, useAppSelector } from '@/store' | ||
import { selectBlindSigning, setBlindSigning } from '@/store/settingsSlice' | ||
import { Paper, Grid, Typography, FormGroup, FormControlLabel, Checkbox } from '@mui/material' | ||
|
||
const SecuritySettings = () => { | ||
const isBlindSigningEnabled = useAppSelector(selectBlindSigning) | ||
const dispatch = useAppDispatch() | ||
|
||
return ( | ||
<Paper sx={{ padding: 4 }}> | ||
<Grid container spacing={3}> | ||
<Grid item lg={4} xs={12}> | ||
<Typography variant="h4" fontWeight="bold" mb={1}> | ||
Security | ||
</Typography> | ||
</Grid> | ||
|
||
<Grid item xs> | ||
<Typography mb={2}> | ||
Enabling this setting allows the signing of unreadable signature requests. Signing these messages can lead | ||
to unpredictable consequences, including the potential loss of funds or control over your account. | ||
</Typography> | ||
<FormGroup> | ||
<FormControlLabel | ||
control={ | ||
<Checkbox | ||
checked={isBlindSigningEnabled} | ||
onChange={() => dispatch(setBlindSigning(!isBlindSigningEnabled))} | ||
/> | ||
} | ||
label="Enable blind signing" | ||
/> | ||
</FormGroup> | ||
</Grid> | ||
</Grid> | ||
</Paper> | ||
) | ||
} | ||
|
||
export default SecuritySettings |
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