Skip to content

Commit bb6fd06

Browse files
committed
refactor
1 parent 17ae62d commit bb6fd06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/app/layout.config.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
reactSource,
66
docsSource,
77
} from "@/app/source";
8-
import { VersionSwitcher } from "@/components/react-version-switcher";
8+
import { ReactVersionSwitcher } from "@/components/react-version-switcher";
99
import { IconSparkle2, IconTree } from "@karrotmarket/react-multicolor-icon";
1010
import clsx from "clsx";
1111
import type { DocsLayoutProps } from "fumadocs-ui/layouts/notebook";
@@ -125,7 +125,7 @@ export const reactOptions: DocsLayoutProps = {
125125
...baseOptions,
126126
sidebar: {
127127
...baseOptions.sidebar,
128-
banner: <VersionSwitcher />,
128+
banner: <ReactVersionSwitcher />,
129129
},
130130
tree: await reactSource.getTransformedReactPageTree(),
131131
};

docs/components/react-version-switcher.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const itemVariants = cva(
1616
"text-sm p-2 rounded-lg inline-flex items-center gap-2 hover:text-fd-accent-foreground hover:bg-fd-accent [&_svg]:size-4",
1717
);
1818

19-
export function VersionSwitcher() {
19+
export function ReactVersionSwitcher() {
2020
const [open, setOpen] = useState(false);
2121
const [hostname, setHostname] = useState("");
2222

0 commit comments

Comments
 (0)