toaster refactoring

This commit is contained in:
2023-10-20 18:42:48 +02:00
parent d64303ccfa
commit d100092f35
3 changed files with 10 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ const Transition = forwardRef(function Transition(
type Props = {
open: boolean
onClose: () => void
onDownloadStart: () => void
onDownloadStart: (url: string) => void
}
export default function DownloadDialog({
@@ -120,7 +120,7 @@ export default function DownloadDialog({
setTimeout(() => {
resetInput()
setDownloadFormats(undefined)
onDownloadStart()
onDownloadStart(url)
}, 250)
}