diff --git a/src/app/(drift)/layout.tsx b/src/app/(drift)/layout.tsx index c2cec48c..afa093c8 100644 --- a/src/app/(drift)/layout.tsx +++ b/src/app/(drift)/layout.tsx @@ -9,8 +9,7 @@ import dynamic from "next/dynamic" const inter = Inter({ subsets: ["latin"], variable: "--inter-font" }) -// const CmdK = dynamic(() => import("@components/cmdk"), { ssr: false }) -import CmdK from "@components/cmdk" +const CmdK = dynamic(() => import("@components/cmdk"), { ssr: false }) export default async function RootLayout({ children diff --git a/src/app/components/cmdk/index.tsx b/src/app/components/cmdk/index.tsx index cbfe6989..d3aa1d22 100644 --- a/src/app/components/cmdk/index.tsx +++ b/src/app/components/cmdk/index.tsx @@ -1,6 +1,5 @@ "use client" -import FadeIn from "@components/fade-in" import { Command } from "cmdk" import { useEffect, useRef, useState } from "react" import styles from "./cmdk.module.css"