diff --git a/package-lock.json b/package-lock.json index 9a12ff8..65e8eb2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,6 +39,7 @@ "next": "13.4.3", "next-auth": "^4.22.1", "next-axiom": "^0.17.0", + "next-themes": "^0.3.0", "pg": "^8.11.1", "postcss": "8.4.23", "react": "18.2.0", @@ -7334,6 +7335,16 @@ "next": "^12.1.4 || ^13" } }, + "node_modules/next-themes": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.3.0.tgz", + "integrity": "sha512-/QHIrsYpd6Kfk7xakK4svpDI5mmXP0gfvCoJdGpZQ2TOrQZmsW0QxjaiLn8wbIKjtm4BTSqLoix4lxYYOnLJ/w==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8 || ^17 || ^18", + "react-dom": "^16.8 || ^17 || ^18" + } + }, "node_modules/next-tick": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", diff --git a/package.json b/package.json index 2bb3ce7..1e0a2c7 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "next": "13.4.3", "next-auth": "^4.22.1", "next-axiom": "^0.17.0", + "next-themes": "^0.3.0", "pg": "^8.11.1", "postcss": "8.4.23", "react": "18.2.0", diff --git a/src/app/components/portfolio/Toolbar.tsx b/src/app/components/portfolio/Toolbar.tsx index 42f863e..9dd8a3c 100644 --- a/src/app/components/portfolio/Toolbar.tsx +++ b/src/app/components/portfolio/Toolbar.tsx @@ -22,7 +22,7 @@ interface ToolbarProps { } const navigationMenuTriggerStyle = cva( - "bg-gray-50 cursor-pointer group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-gray-200 hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-gray-200" + "bg-gray-50 cursor-pointer group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-gray-200 hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-gray-200 " ); export function Toolbar({ portfolioId }: ToolbarProps) { diff --git a/src/app/shadcn_components/ui/navigation-menu.tsx b/src/app/shadcn_components/ui/navigation-menu.tsx index 0cb661b..e503467 100644 --- a/src/app/shadcn_components/ui/navigation-menu.tsx +++ b/src/app/shadcn_components/ui/navigation-menu.tsx @@ -12,7 +12,7 @@ const NavigationMenu = React.forwardRef< {children}{" "}