fix(palette): responsive and improve performance

This commit is contained in:
Aslam H
2024-09-09 10:34:00 +07:00
parent 99816efa26
commit 1c3ffcf92f
3 changed files with 24 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ import { GraphNode } from "@/components/routes/public/PublicHomeRoute"
import { useCommandActions } from "./hooks/use-command-actions"
import { atom, useAtom } from "jotai"
let graph_data_promise = import("@/components/routes/public/graph-data.json").then(a => a.default)
const graph_data_promise = import("@/components/routes/public/graph-data.json").then(a => a.default)
const filterItems = (items: CommandItemType[], searchRegex: RegExp) =>
items.filter(item => searchRegex.test(item.value)).slice(0, 6)