Skip to content

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

Python

reset inputMode when resetting state

Abi Raja5f6dd0841194
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 789b905a..048426c4 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -110,19 +110,20 @@ function App() {
const reset = () => {
setAppState(AppState.INITIAL);
+ setShouldIncludeResultImage(false);
+ setUpdateInstruction("");
+ disableInSelectAndEditMode();
setGeneratedCode("");
resetVariants();
resetExecutionConsoles();
// Inputs
+ setInputMode("image");
setReferenceImages([]);
- setUpdateInstruction("");
setIsImportedFromCode(false);
setAppHistory([]);
setCurrentVersion(null);
- setShouldIncludeResultImage(false);
- disableInSelectAndEditMode();
};
const regenerate = () => {