We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6f98f2 commit 48531a2Copy full SHA for 48531a2
apps/frontend/src/routes/_auth/administration/export/index.tsx
@@ -1,9 +1,9 @@
1
import { Button } from "@quassel/ui";
2
import { createFileRoute } from "@tanstack/react-router";
3
-import { useDownload } from "../../../../hooks/useDownload";
+import { $api } from "../../../../stores/api";
4
5
function AdministrationExportIndex() {
6
- const { downloadFile } = useDownload("/export", "dump.sql");
+ const { downloadFile } = $api.useDownload("/export", "dump.sql");
7
return (
8
<div>
9
<Button onClick={() => downloadFile()}>Download</Button>
0 commit comments