Skip to content

Commit

Permalink
fix: Fix storybook error
Browse files Browse the repository at this point in the history
  • Loading branch information
giubatt committed Jul 7, 2021
1 parent f101679 commit 64b5b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SubNavigationMenu/SubNavigationMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useMemo,
useState,
} from "react"
import { jsx, ThemeUICSSObject } from "theme-ui"
import { jsx as TUIjsx, ThemeUICSSObject } from "theme-ui"
import Button from "../Button/Button"
import { SubNavigationMenuContext, useSubNavigationMenu } from "./Context"

Expand Down Expand Up @@ -65,7 +65,7 @@ const SubNavigationMenuItem = ({
if (typeof item === "string") {
return <span sx={defaultStyles}>{item}</span>
}
return jsx(item.type, {
return TUIjsx(item.type, {
...item.props,
sx: { ...defaultStyles, ...item.props.sx },
})
Expand Down

0 comments on commit 64b5b76

Please sign in to comment.