Skip to content

Commit

Permalink
Update Word export state
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefwint committed Feb 13, 2024
1 parent 81ed9b1 commit cfd7b17
Showing 1 changed file with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@pzh-ui/components'
import { Button, Tooltip } from '@pzh-ui/components'
import { FileWord } from '@pzh-ui/icons'
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'react-router-dom'
Expand Down Expand Up @@ -127,15 +127,23 @@ const VersionRow = ({
}>
Bewerken
</Button>
<Button
size="small"
icon={FileWord}
iconSize={16}
className="ml-auto"
onPress={() => download()}
isLoading={isFetching}
isDisabled={isFetching}
/>
<Tooltip
label={
isFetching
? 'De download wordt gegeneerd, dit kan even duren'
: 'Download Word export'
}>
<div className="ml-auto">
<Button
size="small"
icon={FileWord}
iconSize={16}
onPress={() => download()}
isLoading={isFetching}
isDisabled={isFetching}
/>
</div>
</Tooltip>
</div>
</td>
</tr>
Expand Down

0 comments on commit cfd7b17

Please sign in to comment.