small fix for download button

This commit is contained in:
hzrd149 2025-01-24 12:30:10 -06:00
parent e92d4b3aa5
commit f634a567b1

View File

@ -6,7 +6,6 @@ import { BlossomClient } from "blossom-client-sdk";
import { saveAs } from "file-saver";
import useUsersMediaServers from "../../../hooks/use-user-media-servers";
import useAsyncErrorHandler from "../../../hooks/use-async-error-handler";
import { useSigningContext } from "../../../providers/global/signing-provider";
import { DownloadIcon } from "../../../components/icons";
@ -75,7 +74,7 @@ export default function FileDownloadButton({
};
return (
<Button onClick={download} leftIcon={<DownloadIcon boxSize="1.2em" />} {...props}>
<Button onClick={download} leftIcon={<DownloadIcon boxSize="1.2em" />} isLoading={loading} {...props}>
{children || "Download"}
</Button>
);