finish renaming

This commit is contained in:
Maze Winther
2025-06-22 13:09:21 +02:00
parent 6b77e83ca0
commit 5792eecfc3
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
import { useEffect } from "react"; import { useEffect } from "react";
import { Loader2 } from "lucide-react"; import { Loader2 } from "lucide-react";
import { useAppStore } from "@/stores/editor-store"; import { useEditorStore } from "@/stores/editor-store";
import { usePanelStore } from "@/stores/panel-store"; import { usePanelStore } from "@/stores/panel-store";
interface EditorProviderProps { interface EditorProviderProps {
@ -10,7 +10,7 @@ interface EditorProviderProps {
} }
export function EditorProvider({ children }: EditorProviderProps) { export function EditorProvider({ children }: EditorProviderProps) {
const { isInitializing, isPanelsReady, initializeApp } = useAppStore(); const { isInitializing, isPanelsReady, initializeApp } = useEditorStore();
const { setInitialized } = usePanelStore(); const { setInitialized } = usePanelStore();
useEffect(() => { useEffect(() => {

View File

@ -1,6 +1,6 @@
import { create } from "zustand"; import { create } from "zustand";
interface AppState { interface EditorState {
// Loading states // Loading states
isInitializing: boolean; isInitializing: boolean;
isPanelsReady: boolean; isPanelsReady: boolean;
@ -11,7 +11,7 @@ interface AppState {
initializeApp: () => Promise<void>; initializeApp: () => Promise<void>;
} }
export const useAppStore = create<AppState>((set, get) => ({ export const useEditorStore = create<EditorState>((set, get) => ({
// Initial states // Initial states
isInitializing: true, isInitializing: true,
isPanelsReady: false, isPanelsReady: false,