Skip to content

Commit

Permalink
use standalone smartlink button instead of div
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKiral committed Oct 13, 2023
1 parent 0db0e38 commit 7fa1046
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/shared/ui/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
resolveUrlPath,
} from "../../../lib/routing";
import { siteCodename } from "../../../lib/utils/env";
import { createItemSmartLink } from "../../../lib/utils/smartLinkUtils";
import {
Article,
contentTypes,
Expand All @@ -22,6 +21,7 @@ import {
WSL_Page,
WSL_WebSpotlightRoot,
} from "../../../models";
import { StandaloneSmartLinkButton } from "../StandaloneSmartLinkButton";

type Link = Readonly<Nav_NavigationItem>;

Expand Down Expand Up @@ -181,7 +181,9 @@ export const Menu: FC<Props> = (props) => {
<Bars3Icon className="w-6 h-6" />
</button>
</div>
<div {...createItemSmartLink(props.item.system.id)} />
<StandaloneSmartLinkButton
itemId={props.item.system.id}
/>
<div>
<MenuList
smallMenuActive={smallMenuActive}
Expand Down

0 comments on commit 7fa1046

Please sign in to comment.