Skip to content

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

Python

fix some TODOs

Abi Raja654228993171
diff --git a/frontend/src/components/preview/PreviewPane.tsx b/frontend/src/components/preview/PreviewPane.tsx
index 83ee1820..cc580089 100644
--- a/frontend/src/components/preview/PreviewPane.tsx
+++ b/frontend/src/components/preview/PreviewPane.tsx
@@ -89,12 +89,7 @@ function PreviewPane({ doUpdate, reset, settings }: Props) {
/>
</TabsContent>
<TabsContent value="code">
- <CodeTab
- code={previewCode}
- // TODO*
- setCode={() => {}}
- settings={settings}
- />
+ <CodeTab code={previewCode} setCode={() => {}} settings={settings} />
</TabsContent>
</Tabs>
</div>
diff --git a/frontend/src/components/variants/Variants.tsx b/frontend/src/components/variants/Variants.tsx
index 1a1eb437..6b6ce8f8 100644
--- a/frontend/src/components/variants/Variants.tsx
+++ b/frontend/src/components/variants/Variants.tsx
@@ -3,7 +3,7 @@ import { useProjectStore } from "../../store/project-store";
function Variants() {
const { head, commits, updateSelectedVariantIndex } = useProjectStore();
- // TODO*: Is HEAD null right? And check variants.length === 0 ||
+ // If there is no head, don't show the variants
if (head === null) {
return null;
}