Skip to content

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

Python

Merge branch 'main' into pr/43

Abi Raja55060b866e87
diff --cc frontend/src/App.tsx
index 72bd672a,1e76d550..ea095c01
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@@ -21,7 -21,7 +21,8 @@@ import { Settings } from "./types"
import { IS_RUNNING_ON_CLOUD } from "./config";
import { PicoBadge } from "./components/PicoBadge";
import { OnboardingNote } from "./components/OnboardingNote";
+import { usePersistedState } from "./hooks/usePersistedState";
+ import { UrlInputSection } from "./components/UrlInputSection";
function App() {
const [appState, setAppState] = useState<"INITIAL" | "CODING" | "CODE_READY">(
@@@ -32,11 -32,12 +33,15 @@@
const [executionConsole, setExecutionConsole] = useState<string[]>([]);
const [updateInstruction, setUpdateInstruction] = useState("");
const [history, setHistory] = useState<string[]>([]);
- const [settings, setSettings] = usePersistedState<Settings>({
- const [settings, setSettings] = useState<Settings>({
-- openAiApiKey: null,
- screenshotOneApiKey: null,
-- isImageGenerationEnabled: true,
- editorTheme: "cobalt"
- }, 'setting');
- editorTheme: "cobalt",
- });
++ const [settings, setSettings] = usePersistedState<Settings>(
++ {
++ openAiApiKey: null,
++ screenshotOneApiKey: null,
++ isImageGenerationEnabled: true,
++ editorTheme: "cobalt",
++ },
++ "setting"
++ );
const downloadCode = () => {
// Create a blob from the generated code