From 6edcf272a9be203ff5b4a37cff4a04f4ea1671e3 Mon Sep 17 00:00:00 2001 From: Carlo Carels Date: Fri, 8 Dec 2023 14:25:51 +0100 Subject: [PATCH] refactor: always apply the commonLogoStyles --- packages/next-ui/LayoutParts/Logo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next-ui/LayoutParts/Logo.tsx b/packages/next-ui/LayoutParts/Logo.tsx index 99975a4cbd..2da4aedf4f 100644 --- a/packages/next-ui/LayoutParts/Logo.tsx +++ b/packages/next-ui/LayoutParts/Logo.tsx @@ -37,7 +37,7 @@ const LogoContainer = styled(NextLink, { name, slot: 'parent', overridesResolver: (_props, styles) => styles.parent, -})(commonLogoStyles) +})() export type LogoProps = { href?: `/${string}` @@ -66,7 +66,7 @@ export const Logo = forwardRef((props, ref) => { component={shouldRedirect ? LogoContainer : 'div'} href={shouldRedirect ? href : undefined} ref={ref} - sx={shouldRedirect ? sx : [...(Array.isArray(sx) ? sx : [sx]), commonLogoStyles]} + sx={[...(Array.isArray(sx) ? sx : [sx]), commonLogoStyles]} className={classes.parent} > {img}