From 444c16abe6424c2d6eec7a0f8f51723b01d4f473 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 14 Nov 2023 14:49:05 -0500 Subject: [PATCH] show generated code in preview --- frontend/src/App.tsx | 4 ++-- frontend/src/components/Preview.tsx | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 74556cf..6932925 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -16,7 +16,7 @@ function App() { } return ( -
+

Drag & Drop a Screenshot

{referenceImages.length > 0 && ( Reference @@ -29,7 +29,7 @@ function App() { )} - +
); } diff --git a/frontend/src/components/Preview.tsx b/frontend/src/components/Preview.tsx index 5cbaf84..c8508b1 100644 --- a/frontend/src/components/Preview.tsx +++ b/frontend/src/components/Preview.tsx @@ -1,11 +1,15 @@ -function Preview() { +interface Props { + code: string; +} + +function Preview({ code }: Props) { return (
);