-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adjust connection center design (#2745)
* fix: Adjust connection center design * refactor: Use currentColor for the icon
- Loading branch information
1 parent
010faca
commit 232674c
Showing
7 changed files
with
41 additions
and
11 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 |
---|---|---|
@@ -1,9 +1,30 @@ | ||
import Keyhole from '@/components/common/icons/KeyholeIcon/keyhole.svg' | ||
import css from '@/components/common/icons/CircularIcon/styles.module.css' | ||
import LockIcon from '@/public/images/common/lock.svg' | ||
import { Badge, SvgIcon } from '@mui/material' | ||
|
||
import CircularIcon from '../CircularIcon' | ||
|
||
const KeyholeIcon = ({ size = 40 }: { size?: number }) => { | ||
return <CircularIcon icon={Keyhole} badgeColor="error" size={size} /> | ||
const KeyholeIcon = ({ size = 28 }: { size?: number }) => { | ||
return ( | ||
<Badge | ||
color="error" | ||
overlap="circular" | ||
variant="dot" | ||
anchorOrigin={{ | ||
vertical: 'bottom', | ||
horizontal: 'right', | ||
}} | ||
className={css.badge} | ||
> | ||
<SvgIcon | ||
color="border" | ||
component={LockIcon} | ||
inheritViewBox | ||
sx={{ | ||
height: size, | ||
width: size, | ||
}} | ||
/> | ||
</Badge> | ||
) | ||
} | ||
|
||
export default KeyholeIcon |
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