diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index ae9d381b..8f1e5e1c 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -37,7 +37,7 @@ export const RightSidePanel: React.FC = ({ onFinishCapture const [selectedLimit, setSelectedLimit] = useState('10'); const { lastAction, notify } = useGlobalInfoStore(); - const { getText, startGetText, stopGetText, getScreenshot, startGetScreenshot, stopGetScreenshot, paginationMode, getList, startGetList, stopGetList, startPaginationMode, stopPaginationMode, paginationType, updatePaginationType, limitMode, limitType, customLimit, updateLimitType, updateCustomLimit, stopLimitMode } = useActionContext(); + const { getText, startGetText, stopGetText, getScreenshot, startGetScreenshot, stopGetScreenshot, paginationMode, getList, startGetList, stopGetList, startPaginationMode, stopPaginationMode, paginationType, updatePaginationType, limitMode, limitType, customLimit, updateLimitType, updateCustomLimit, stopLimitMode } = useActionContext(); const { browserSteps, updateBrowserTextStepLabel, deleteBrowserStep, addScreenshotStep } = useBrowserSteps(); const { socket } = useSocketStore(); @@ -246,34 +246,34 @@ export const RightSidePanel: React.FC = ({ onFinishCapture )} -{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', - }, - }} - /> - )} - -
- - )} + {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 && } {getText &&