From 5792eecfc35465fc87fdca4f29a85cc0fe29e7ab Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 22 Jun 2025 13:09:21 +0200 Subject: [PATCH] finish renaming --- apps/web/src/components/editor-provider.tsx | 4 ++-- apps/web/src/stores/editor-store.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/src/components/editor-provider.tsx b/apps/web/src/components/editor-provider.tsx index fbae4c9..ab55c7d 100644 --- a/apps/web/src/components/editor-provider.tsx +++ b/apps/web/src/components/editor-provider.tsx @@ -2,7 +2,7 @@ import { useEffect } from "react"; import { Loader2 } from "lucide-react"; -import { useAppStore } from "@/stores/editor-store"; +import { useEditorStore } from "@/stores/editor-store"; import { usePanelStore } from "@/stores/panel-store"; interface EditorProviderProps { @@ -10,7 +10,7 @@ interface EditorProviderProps { } export function EditorProvider({ children }: EditorProviderProps) { - const { isInitializing, isPanelsReady, initializeApp } = useAppStore(); + const { isInitializing, isPanelsReady, initializeApp } = useEditorStore(); const { setInitialized } = usePanelStore(); useEffect(() => { diff --git a/apps/web/src/stores/editor-store.ts b/apps/web/src/stores/editor-store.ts index 746fdc4..e8dd8e2 100644 --- a/apps/web/src/stores/editor-store.ts +++ b/apps/web/src/stores/editor-store.ts @@ -1,6 +1,6 @@ import { create } from "zustand"; -interface AppState { +interface EditorState { // Loading states isInitializing: boolean; isPanelsReady: boolean; @@ -11,7 +11,7 @@ interface AppState { initializeApp: () => Promise; } -export const useAppStore = create((set, get) => ({ +export const useEditorStore = create((set, get) => ({ // Initial states isInitializing: true, isPanelsReady: false,