From 13ca1155b247303f443fa2fdb30d78830a64da01 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 21 Oct 2024 15:21:12 +0530 Subject: [PATCH] chore: lint --- .../molecules/InterpretationLog.tsx | 172 +++++++++--------- 1 file changed, 86 insertions(+), 86 deletions(-) diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index 2883233c..717eab56 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -112,99 +112,99 @@ export const InterpretationLog: React.FC = ({ isOpen, se }, [hasScrapeListAction, hasScrapeSchemaAction, hasScreenshotAction, setIsOpen]); return ( - - - + + + Output Data Preview + +
- Output Data Preview - - - - Output Data Preview - -
- {tableData.length > 0 ? ( - - - - + {tableData.length > 0 ? ( + +
+ + + {columns.map((column) => ( + {column} + ))} + + + + {tableData.slice(0, Math.min(5, tableData.length)).map((row, index) => ( + {columns.map((column) => ( - {column} + {row[column]} ))} - - - {tableData.slice(0, Math.min(5, tableData.length)).map((row, index) => ( - - {columns.map((column) => ( - {row[column]} - ))} - - ))} - -
-
- ) : ( - - - {hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction ? ( - <> - - You've successfully trained the robot to perform actions! Click on the button below to get a preview of the data your robot will extract. - - - - ) : ( + ))} + + + + ) : ( + + + {hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction ? ( + <> - It looks like you have not selected anything for extraction yet. Once you do, the robot will show a preview of your selections here. + You've successfully trained the robot to perform actions! Click on the button below to get a preview of the data your robot will extract. - )} - + + + ) : ( + + It looks like you have not selected anything for extraction yet. Once you do, the robot will show a preview of your selections here. + + )} - )} -
-
- -
+
+ )} +
+
+ - ); + + ); } \ No newline at end of file