feat: show user selection is happenning

This commit is contained in:
karishmas6
2024-09-01 22:53:32 +05:30
parent 093fa2d202
commit a128c150cc

View File

@@ -225,15 +225,17 @@ export const RightSidePanel = () => {
</Box>
)}
{showPaginationSelector && (
<Box display="flex" flexDirection="column" gap={2} style={{ margin: '15px' }}>
<Typography>Please select the pagination element on the page</Typography>
<Button variant="contained" onClick={handleStartPaginationSelection}>Start Selection</Button>
{paginationSelector && (
<Typography>Selected pagination element: {paginationSelector}</Typography>
)}
</Box>
)}
{showPaginationSelector && (
<Box display="flex" flexDirection="column" gap={2} style={{ margin: '15px' }}>
<Typography>Please select the pagination element on the page</Typography>
<Button variant="contained" onClick={handleStartPaginationSelection} disabled={isSelectingPagination}>
{isSelectingPagination ? 'Selecting...' : 'Start Selection'}
</Button>
{paginationSelector && (
<Typography>Selected pagination element: {paginationSelector}</Typography>
)}
</Box>
)}
{!getText && !getScreenshot && !getList && <Button variant="contained" onClick={startGetText}>Capture Text</Button>}
{getText &&