finish renaming
This commit is contained in:
@ -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(() => {
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user