Make CmdK dynamic
This commit is contained in:
parent
590cc51ec8
commit
806b173d22
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue