From 4f81ad297b941f436717f0af17b312e47b469f40 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sun, 8 Sep 2024 12:22:33 +0530 Subject: [PATCH] feat(wip): ui for limit --- src/components/organisms/RightSidePanel.tsx | 56 ++++++++++----------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index aefdbcf6..ae9d381b 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -246,35 +246,33 @@ export const RightSidePanel: React.FC = ({ onFinishCapture )} -{showLimitOptions && ( - - - -

What is the maximum number of rows you want to extract?

-
- - } label="10" /> - } label="100" /> - } label="Custom" /> - {selectedLimit === 'custom' && ( - - )} - -
- -
+{limitMode && ( + + +

What is the maximum number of rows you want to extract?

+
+ updateLimitType(e.target.value as LimitType)} sx={{ width: '500px' }}> + } label="10" /> + } label="100" /> + } label="Custom" /> + {limitType === 'custom' && ( + updateCustomLimit(e.target.value)} + placeholder="Enter number" + sx={{ + marginLeft: '10px', + marginTop: '-3px', + '& input': { + padding: '10px', + }, + }} + /> + )} + +
+ )} {!getText && !getScreenshot && !getList && }