♻️ add command palette trigger on the header

This commit is contained in:
Fred KISSIE
2026-06-19 18:08:36 +02:00
parent 4e7328a1cc
commit 2ab5540085
3 changed files with 21 additions and 18 deletions
@@ -100,7 +100,7 @@ export function CommandPalette({ orgId, orgs, navItems }: CommandPaletteProps) {
return (
<CommandDialog
open={open} // TODO: flip back to normal
open={open}
onOpenChange={handleOpenChange}
title={t("commandPaletteTitle")}
description={t("commandPaletteDescription")}
@@ -433,7 +433,7 @@ export function CommandPaletteProvider({
orgs,
navItems
}: CommandPaletteProviderProps) {
const [open, setOpen] = useState(true); // FIXME: should be set to `false` by default, this is temporary
const [open, setOpen] = useState(false);
const toggle = useCallback(() => {
setOpen((current) => !current);