mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
finish renaming
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -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<void>;
|
||||
}
|
||||
|
||||
export const useAppStore = create<AppState>((set, get) => ({
|
||||
export const useEditorStore = create<EditorState>((set, get) => ({
|
||||
// Initial states
|
||||
isInitializing: true,
|
||||
isPanelsReady: false,
|
||||
|
||||
Reference in New Issue
Block a user