From 9034048089deac949a3034e33d4066f23ce2f60a Mon Sep 17 00:00:00 2001 From: Piyush Mishra Date: Mon, 27 Nov 2023 09:59:09 +0530 Subject: [PATCH] AppState.CODING show multiple reference images when applicable --- frontend/src/App.tsx | 57 +++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 83d5d87..c14bf73 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -500,37 +500,34 @@ function App() { {/* Reference image display */}
- {referenceImages.length > 0 && ( -
-
- {inputMode === "image" && ( - Reference - )} - {inputMode === "video" && ( -
-
- {inputMode === "video" - ? "Original Video" - : "Original Screenshot"} -
+
+
+ {referenceImages.length > 1 ? ( +
+ {referenceImages.map((image, i) => ( + {`Reference + ))} +
+ ) : ( + + )}
- )} +
+ Original Screenshot{referenceImages.length > 1 ? "s" : ""} +
+

Console