Skip to content

Commit

Permalink
refactor: always apply the commonLogoStyles
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocarels90 committed Dec 8, 2023
1 parent cc172fb commit 6edcf27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-ui/LayoutParts/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const LogoContainer = styled(NextLink, {
name,
slot: 'parent',
overridesResolver: (_props, styles) => styles.parent,
})(commonLogoStyles)
})()

export type LogoProps = {
href?: `/${string}`
Expand Down Expand Up @@ -66,7 +66,7 @@ export const Logo = forwardRef<HTMLAnchorElement, LogoProps>((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}
Expand Down

0 comments on commit 6edcf27

Please sign in to comment.