Skip to content

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

Python

Merge branch 'main' into pr/65

Abi Raja41b8f91cbc92
diff --cc frontend/src/App.tsx
index 73afbc6c,4b7c9355..756bb57f
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@@ -41,8 -41,7 +41,8 @@@ function App()
openAiApiKey: null,
screenshotOneApiKey: null,
isImageGenerationEnabled: true,
- editorTheme: "cobalt",
+ editorTheme: EditorTheme.COBALT,
+ termOfServiceAccepted: false,
},
"setting"
);
@@@ -135,7 -127,7 +135,12 @@@
return (
<div className="mt-2">
{IS_RUNNING_ON_CLOUD && <PicoBadge />}
- {IS_RUNNING_ON_CLOUD && <TermsOfServiceDialog open={!settings.termOfServiceAccepted} onOpenChange={handleTermDialogOpenChange} />}
- {IS_RUNNING_ON_CLOUD && <TermsOfServiceDialog />}
++ {IS_RUNNING_ON_CLOUD && (
++ <TermsOfServiceDialog
++ open={!settings.termOfServiceAccepted}
++ onOpenChange={handleTermDialogOpenChange}
++ />
++ )}
<div className="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-96 lg:flex-col">
<div className="flex grow flex-col gap-y-2 overflow-y-auto border-r border-gray-200 bg-white px-6">
diff --cc frontend/src/types.ts
index 0610102f,ef608585..f050eac1
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@@ -2,8 -7,7 +7,8 @@@ export interface Settings
openAiApiKey: string | null;
screenshotOneApiKey: string | null;
isImageGenerationEnabled: boolean;
- editorTheme: string;
+ editorTheme: EditorTheme;
+ termOfServiceAccepted: boolean;
}
export enum AppState {