diff --git a/app/stats/[slug]/csv/route.ts b/app/stats/[slug]/csv/route.ts index cf7f61f05..d9eda935b 100644 --- a/app/stats/[slug]/csv/route.ts +++ b/app/stats/[slug]/csv/route.ts @@ -1,4 +1,4 @@ -import { usePapaParse } from "react-papaparse"; +import { jsonToCSV } from "react-papaparse"; import { getAllMetricSamples, type MetricSample } from "~/src/data/metrics"; import { ContentType } from "~/src/utils"; @@ -12,8 +12,6 @@ type Props = { export async function GET(_: Request, { params }: Props): Promise { const { slug } = params; - const { jsonToCSV } = usePapaParse(); - const compareSamplesByDate = (a: MetricSample, b: MetricSample) => new Date(a.date).getTime() - new Date(b.date).getTime(); diff --git a/components/profile/OccupationSelect.tsx b/components/profile/OccupationSelect.tsx index e7481a3d0..3566e05d6 100644 --- a/components/profile/OccupationSelect.tsx +++ b/components/profile/OccupationSelect.tsx @@ -1,5 +1,3 @@ -import { RequiredFieldMarker } from "~/components/form/RequiredFieldMarker"; - export type Props = { occupation?: string; disabled?: boolean;