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 inter = Inter({ subsets: ["latin"], variable: "--inter-font" })
|
||||||
|
|
||||||
// const CmdK = dynamic(() => import("@components/cmdk"), { ssr: false })
|
const CmdK = dynamic(() => import("@components/cmdk"), { ssr: false })
|
||||||
import CmdK from "@components/cmdk"
|
|
||||||
|
|
||||||
export default async function RootLayout({
|
export default async function RootLayout({
|
||||||
children
|
children
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import FadeIn from "@components/fade-in"
|
|
||||||
import { Command } from "cmdk"
|
import { Command } from "cmdk"
|
||||||
import { useEffect, useRef, useState } from "react"
|
import { useEffect, useRef, useState } from "react"
|
||||||
import styles from "./cmdk.module.css"
|
import styles from "./cmdk.module.css"
|
||||||
|
|
Loading…
Reference in a new issue