mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 02:17:53 +00:00
fix(customHomePage): adjust icon colors of add module menu items (#14348)
This commit is contained in:
parent
a3f3e16e80
commit
ed304f03cd
@ -45,10 +45,12 @@ export default function MenuItem({ icon, title, description, hasChildren, isDisa
|
||||
return 'Cannot add large widget to small widget row';
|
||||
}, [isDisabled, isSmallModule]);
|
||||
|
||||
const iconColorLevel = isDisabled ? 300 : 1800;
|
||||
|
||||
const content = (
|
||||
<Wrapper>
|
||||
<IconWrapper>
|
||||
<Icon icon={icon} source="phosphor" color="gray" size="2xl" />
|
||||
<Icon icon={icon} source="phosphor" color="gray" colorLevel={iconColorLevel} size="2xl" />
|
||||
</IconWrapper>
|
||||
|
||||
<Container>
|
||||
@ -62,7 +64,9 @@ export default function MenuItem({ icon, title, description, hasChildren, isDisa
|
||||
|
||||
<SpaceFiller />
|
||||
|
||||
{hasChildren && <Icon icon="CaretRight" source="phosphor" color="gray" size="lg" />}
|
||||
{hasChildren && (
|
||||
<Icon icon="CaretRight" source="phosphor" color="gray" colorLevel={iconColorLevel} size="lg" />
|
||||
)}
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user