Make CmdK dynamic

This commit is contained in:
Max Leiter 2023-02-25 22:46:55 -08:00
parent 590cc51ec8
commit 806b173d22
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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"