mirror of
https://github.com/twentyhq/twenty.git
synced 2025-01-04 18:21:59 +03:00
fix: Icon size stroke in MenuItem (#1545)
* icon size change * stroke prop * lint fix * lint refix * wrong repo change
This commit is contained in:
parent
e23b8ecca1
commit
cdd7890bef
@ -1,3 +1,6 @@
|
||||
import { FunctionComponent } from 'react';
|
||||
|
||||
export type IconComponent = FunctionComponent<{ size?: number }>;
|
||||
export type IconComponent = FunctionComponent<{
|
||||
size?: number;
|
||||
stroke?: number;
|
||||
}>;
|
||||
|
@ -18,7 +18,9 @@ export function MenuItemLeftContent({ LeftIcon, text }: OwnProps) {
|
||||
|
||||
return (
|
||||
<StyledMenuItemLeftContent>
|
||||
{LeftIcon && <LeftIcon size={theme.icon.size.md} />}
|
||||
{LeftIcon && (
|
||||
<LeftIcon size={theme.icon.size.md} stroke={theme.icon.stroke.sm} />
|
||||
)}
|
||||
<StyledMenuItemLabel hasLeftIcon={!!LeftIcon}>
|
||||
<OverflowingTextWithTooltip text={text} />
|
||||
</StyledMenuItemLabel>
|
||||
|
Loading…
Reference in New Issue
Block a user