Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

refactor

Abi Raja64dd7d62792e
diff --git a/frontend/src/store/project-store.ts b/frontend/src/store/project-store.ts
index d35ba14c..6bb2cdbc 100644
--- a/frontend/src/store/project-store.ts
+++ b/frontend/src/store/project-store.ts
@@ -56,8 +56,9 @@ export const useProjectStore = create<ProjectStore>((set) => ({
typeof updater === "function" ? updater(state.generatedCode) : updater,
})),
- variants: [],
currentVariantIndex: 0,
+ variants: [],
+ executionConsoles: {},
setCurrentVariantIndex: (index) => set({ currentVariantIndex: index }),
setVariant: (code: string, index: number) =>
@@ -80,8 +81,6 @@ export const useProjectStore = create<ProjectStore>((set) => ({
}),
resetVariants: () => set({ variants: [], currentVariantIndex: 0 }),
- executionConsoles: {},
-
appendExecutionConsole: (variantIndex: number, line: string) =>
set((state) => ({
executionConsoles: {