Skip to content

Commit

Permalink
download kmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
haaarshsingh committed Jun 18, 2024
1 parent c0dc185 commit 37080ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import { useEffect, useState, type FC, type ReactNode } from "react";
import { ThemeProvider } from "next-themes";
import { MenuProvider } from "kmenu";
import { MenuProvider, Dimensions } from "kmenu";

export default (({ children }) => {
const [mounted, setMounted] = useState(false);
useEffect(() => setMounted(true), [mounted]);

const dimensions = {
const dimensions: Dimensions = {
sectionHeight: 30,
commandHeight: 50,
commands: 6,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"clsx": "^2.1.0",
"framer-motion": "^11.0.3",
"image-size": "^1.1.1",
"kmenu": "*",
"kmenu": "^2.0.0-1-dev",
"next": "^14.0.4",
"next-themes": "^0.2.1",
"react": "^18.2.0",
Expand Down

0 comments on commit 37080ab

Please sign in to comment.