@theguild/components 9.1.3 → 9.1.4-alpha-20250121173152-6b94c5a76b6cad1512277e384be25a3558061834
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useContext, useEffect, useId, useRef, useState } from "react";
|
|
4
|
+
import NextLink from "next/link";
|
|
4
5
|
import { cn } from "../cn";
|
|
5
6
|
const DropdownContext = createContext(null);
|
|
6
7
|
function useDropdownContext() {
|
|
@@ -118,7 +119,7 @@ function DropdownContent({ children, className, ...props }) {
|
|
|
118
119
|
}
|
|
119
120
|
function DropdownItem({ children, onClick, className, href, ...props }) {
|
|
120
121
|
if (href) {
|
|
121
|
-
return /* @__PURE__ */ jsx(
|
|
122
|
+
return /* @__PURE__ */ jsx(NextLink, { role: "menuitem", href, className, onClick, ...props, children });
|
|
122
123
|
}
|
|
123
124
|
return /* @__PURE__ */ jsx(
|
|
124
125
|
"button",
|
package/package.json
CHANGED