diff --git a/packages/rimun-app/src/pages/dashboard/person/admin/exports/index.tsx b/packages/rimun-app/src/pages/dashboard/person/admin/exports/index.tsx index 8dcca37..714b0ee 100644 --- a/packages/rimun-app/src/pages/dashboard/person/admin/exports/index.tsx +++ b/packages/rimun-app/src/pages/dashboard/person/admin/exports/index.tsx @@ -4,7 +4,6 @@ import Card from "src/components/layout/Card"; import Spinner from "src/components/status/Spinner"; import PageTitle from "src/components/typography/PageTitle"; import { trpc } from "src/trpc"; -import { downloadBase64File } from "src/utils/download"; export default function AdminExports() { const attendeesTSVQuery = trpc.exports.getAttendeesTSV.useQuery(undefined, { @@ -14,11 +13,6 @@ export default function AdminExports() { }, }); - const badgesQuery = trpc.exports.generateBadge.useQuery(undefined, { - enabled: false, - onSuccess: downloadBase64File, - }); - return (
Exports @@ -34,6 +28,10 @@ export default function AdminExports() { {/* + const badgesQuery = trpc.exports.generateBadge.useQuery(undefined, { + enabled: false, + onSuccess: downloadBase64File, + }); badgesQuery.refetch()}