Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: change owner ui * feat: logout tip * refactor: change owner implement * fix: bugfix * refactor: add comment * refactor: code style * fix: read owner from options * chore: lock file * refactor: remove transfer & changeOwner method * fix: lint error * refactor: handler priority * fix: add owner and identifier in request db * fix: make smartpay stable * feat: open change owner window * chore: ui bugfix * refactor: remove lopgs Co-authored-by: guanbinrui <guanbinrui@dimension.im> Co-authored-by: guanbinrui <52657989+guanbinrui@users.noreply.github.com>
- Loading branch information
1 parent
cdf8458
commit 7d1bb9d
Showing
35 changed files
with
693 additions
and
313 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
38 changes: 38 additions & 0 deletions
38
packages/mask/src/extension/popups/components/StyledRadio/index.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Icons } from '@masknet/icons' | ||
import { makeStyles } from '@masknet/theme' | ||
import { Radio, radioClasses, RadioProps } from '@mui/material' | ||
import { forwardRef, memo } from 'react' | ||
|
||
const useStyles = makeStyles()((theme) => ({ | ||
root: { | ||
'&:hover': { | ||
backgroundColor: 'transparent', | ||
}, | ||
color: theme.palette.maskColor.secondaryLine, | ||
[`&.${radioClasses.checked} svg`]: { | ||
filter: 'drop-shadow(0px 4px 10px rgba(28, 104, 243, 0.2))', | ||
}, | ||
[`&.${radioClasses.disabled} svg`]: { | ||
color: theme.palette.maskColor.secondaryLine, | ||
'& circle': { | ||
fill: `${theme.palette.maskColor.bg} !important`, | ||
}, | ||
}, | ||
}, | ||
})) | ||
|
||
export const StyledRadio = memo( | ||
forwardRef<{}, RadioProps>((props, ref) => { | ||
const { classes } = useStyles() | ||
return ( | ||
<Radio | ||
{...props} | ||
classes={{ root: classes.root }} | ||
inputRef={ref} | ||
checkedIcon={<Icons.RadioButtonChecked size={20} />} | ||
icon={<Icons.RadioButtonUnChecked size={20} />} | ||
disableRipple | ||
/> | ||
) | ||
}), | ||
) |
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.