From f43ba10a575d0c6c2c2a6ed7769cb28f0c871c9b Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Fri, 21 Mar 2025 20:43:33 +0800 Subject: [PATCH] refactor(store): rename src/store to src/stores --- .../dashboard/@admin/settings/language-server/accordion.tsx | 2 +- src/components/settings-button.tsx | 2 +- src/components/settings-dialog.tsx | 2 +- src/{store => stores}/useAdminSettingsStore.ts | 0 src/{store => stores}/useSettingsStore.ts | 0 src/{store => stores}/useTabsStore.ts | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename src/{store => stores}/useAdminSettingsStore.ts (100%) rename src/{store => stores}/useSettingsStore.ts (100%) rename src/{store => stores}/useTabsStore.ts (100%) diff --git a/src/app/(app)/dashboard/@admin/settings/language-server/accordion.tsx b/src/app/(app)/dashboard/@admin/settings/language-server/accordion.tsx index c76f26d..2c1e242 100644 --- a/src/app/(app)/dashboard/@admin/settings/language-server/accordion.tsx +++ b/src/app/(app)/dashboard/@admin/settings/language-server/accordion.tsx @@ -7,8 +7,8 @@ import { AccordionTrigger, } from "@/components/ui/accordion"; import { Loading } from "@/components/loading"; -import { useAdminSettingsStore } from "@/store/useAdminSettingsStore"; import { EditorLanguage, LanguageServerConfig } from "@prisma/client"; +import { useAdminSettingsStore } from "@/stores/useAdminSettingsStore"; import { SettingsLanguageServerForm } from "@/app/(app)/dashboard/@admin/settings/language-server/form"; interface LanguageServerAccordionProps { diff --git a/src/components/settings-button.tsx b/src/components/settings-button.tsx index 67c5f4d..2d33383 100644 --- a/src/components/settings-button.tsx +++ b/src/components/settings-button.tsx @@ -1,7 +1,7 @@ "use client"; import { Settings } from "lucide-react"; -import { useSettingsStore } from "@/store/useSettingsStore"; +import { useSettingsStore } from "@/stores/useSettingsStore"; import { DropdownMenuItem } from "@/components/ui/dropdown-menu"; export function SettingsButton() { diff --git a/src/components/settings-dialog.tsx b/src/components/settings-dialog.tsx index abe99ea..425a3df 100644 --- a/src/components/settings-dialog.tsx +++ b/src/components/settings-dialog.tsx @@ -27,7 +27,7 @@ import { } from "@/components/ui/breadcrumb"; import AppearanceSettings from "./appearance-settings"; import { ScrollArea } from "@/components/ui/scroll-area"; -import { useSettingsStore } from "@/store/useSettingsStore"; +import { useSettingsStore } from "@/stores/useSettingsStore"; import { CodeXml, Globe, Paintbrush, Settings } from "lucide-react"; const data = { diff --git a/src/store/useAdminSettingsStore.ts b/src/stores/useAdminSettingsStore.ts similarity index 100% rename from src/store/useAdminSettingsStore.ts rename to src/stores/useAdminSettingsStore.ts diff --git a/src/store/useSettingsStore.ts b/src/stores/useSettingsStore.ts similarity index 100% rename from src/store/useSettingsStore.ts rename to src/stores/useSettingsStore.ts diff --git a/src/store/useTabsStore.ts b/src/stores/useTabsStore.ts similarity index 100% rename from src/store/useTabsStore.ts rename to src/stores/useTabsStore.ts