diff --git a/front/packages/primitives/src/icons.tsx b/front/packages/primitives/src/icons.tsx index 35aaaee1..c29f969d 100644 --- a/front/packages/primitives/src/icons.tsx +++ b/front/packages/primitives/src/icons.tsx @@ -41,19 +41,21 @@ type IconProps = { export const Icon = ({ icon: Icon, color, size = 24, ...props }: IconProps) => { const { css, theme } = useYoshiki(); - // eslint-disable-next-line react-hooks/rules-of-hooks - const colorValue = Platform.OS !== "web" ? useBreakpointValue(color) : null; + const computed = css( + { width: size, height: size, fill: color ?? theme.contrast } as ViewStyle, + props, + ); return ( ({ - web: css({ width: size, height: size, fill: color ?? theme.contrast } as ViewStyle, props), + web: computed, default: { - height: size, - width: size, + height: computed.style?.height, + width: computed.style?.width, // @ts-ignore - fill: colorValue ?? theme.contrast, - ...props, + fill: computed.style?.fill, + ...computed, }, })} /> diff --git a/front/packages/ui/src/details/header.tsx b/front/packages/ui/src/details/header.tsx index e505d560..279e117c 100644 --- a/front/packages/ui/src/details/header.tsx +++ b/front/packages/ui/src/details/header.tsx @@ -156,6 +156,7 @@ const TitleLine = ({ )} + {/* @ts-ignore */} = ({ slug }) => { if (error || playbackError) return ( <> - theme.appbar })} /> + theme.accent })} /> );