fix(customHomePage): adjust icon colors of add module menu items (#14348)

This commit is contained in:
v-tarasevich-blitz-brain 2025-08-06 21:05:45 +03:00 committed by GitHub
parent a3f3e16e80
commit ed304f03cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>
);