Skip to content

Commit

Permalink
refactor: Use currentColor for the icon
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Nov 6, 2023
1 parent 7aea373 commit 707a103
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/components/common/icons/KeyholeIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ const KeyholeIcon = ({ size = 28 }: { size?: number }) => {
className={css.badge}
>
<SvgIcon
color="border"
component={LockIcon}
inheritViewBox
sx={{
height: size,
width: size,
'& path': {
fill: ({ palette }) => palette.border.main,
},
}}
/>
</Badge>
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/SafeList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const SafeList = ({ closeDrawer }: { closeDrawer?: () => void }): ReactElement =
) : (
<Box display="flex" flexDirection="column" alignItems="center" gap={3} maxWidth={250}>
<Box display="flex" alignItems="center" justifyContent="center">
<KeyholeIcon />
<KeyholeIcon size={40} />
</Box>

<Typography variant="body2" color="primary.light" textAlign="center" sx={{ textWrap: 'balance' }}>
Expand Down

0 comments on commit 707a103

Please sign in to comment.