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

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