Add span around button to get rid of error when button gets disabled

This commit is contained in:
arttu
2024-09-03 18:11:13 +03:00
parent 6f91227a2c
commit 34e6d69643
@@ -176,13 +176,15 @@ export const TableView = <T extends MRT_RowData>({
</span>
}
>
<Button
variant="contained"
disabled={exportIsLoading}
onClick={() => void combinedExport(table.getSortedRowModel().rows.map(d => d.original.lid as number))}
>
Export localities with their species
</Button>
<span>
<Button
variant="contained"
disabled={exportIsLoading}
onClick={() => void combinedExport(table.getSortedRowModel().rows.map(d => d.original.lid as number))}
>
Export localities with their species
</Button>
</span>
</Tooltip>{' '}
{exportIsLoading && <CircularProgress />}
</Box>