Skip to content

Commit 48531a2

Browse files
committed
fix: use api for dump download
1 parent f6f98f2 commit 48531a2

File tree

1 file changed

+2
-2
lines changed
  • apps/frontend/src/routes/_auth/administration/export

1 file changed

+2
-2
lines changed

apps/frontend/src/routes/_auth/administration/export/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Button } from "@quassel/ui";
22
import { createFileRoute } from "@tanstack/react-router";
3-
import { useDownload } from "../../../../hooks/useDownload";
3+
import { $api } from "../../../../stores/api";
44

55
function AdministrationExportIndex() {
6-
const { downloadFile } = useDownload("/export", "dump.sql");
6+
const { downloadFile } = $api.useDownload("/export", "dump.sql");
77
return (
88
<div>
99
<Button onClick={() => downloadFile()}>Download</Button>

0 commit comments

Comments
 (0)