Skip to content

Commit

Permalink
fix(app): commented unused query
Browse files Browse the repository at this point in the history
  • Loading branch information
marinoandrea committed Feb 29, 2024
1 parent 9cfd2c4 commit 0161ad2
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand All @@ -14,11 +13,6 @@ export default function AdminExports() {
},
});

const badgesQuery = trpc.exports.generateBadge.useQuery(undefined, {
enabled: false,
onSuccess: downloadBase64File,
});

return (
<div className="max-w-3xl mx-auto">
<PageTitle>Exports</PageTitle>
Expand All @@ -34,6 +28,10 @@ export default function AdminExports() {
</ExportElement>

{/*
const badgesQuery = trpc.exports.generateBadge.useQuery(undefined, {
enabled: false,
onSuccess: downloadBase64File,
});
<ExportElement
isLoading={badgesQuery.isFetching || badgesQuery.isRefetching}
onDownload={() => badgesQuery.refetch()}
Expand Down

0 comments on commit 0161ad2

Please sign in to comment.