mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Add span around button to get rid of error when button gets disabled
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user