From c020135cd19290630bc0b826bdc9a81bde376304 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 11 Jun 2026 12:36:03 +0200 Subject: [PATCH] feat: move diary export to settings page with CSV/JSON options --- spa/src/routes/_app/diary.tsx | 27 +---------- spa/src/routes/_app/settings/index.tsx | 67 ++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 25 deletions(-) diff --git a/spa/src/routes/_app/diary.tsx b/spa/src/routes/_app/diary.tsx index 9773307..3161d21 100644 --- a/spa/src/routes/_app/diary.tsx +++ b/spa/src/routes/_app/diary.tsx @@ -1,7 +1,7 @@ import { createFileRoute } from "@tanstack/react-router" import { useCallback, useState } from "react" import { useTranslation } from "react-i18next" -import { BookOpen, ChevronLeft, ChevronRight, Download } from "lucide-react" +import { BookOpen, ChevronLeft, ChevronRight } from "lucide-react" import { format, startOfMonth, subMonths } from "date-fns" import { MovieCard } from "@/components/movie-card" import { EmptyState } from "@/components/empty-state" @@ -10,8 +10,6 @@ import { VirtualList } from "@/components/virtual-list" import { Button } from "@/components/ui/button" import { Skeleton } from "@/components/ui/skeleton" import { useInfiniteDiary, useDeleteReview } from "@/hooks/use-diary" -import { API_URL } from "@/lib/api/client" -import { getToken } from "@/lib/auth" import type { DiaryEntryDto } from "@/lib/api/common" export const Route = createFileRoute("/_app/diary")({ @@ -75,28 +73,7 @@ function DiaryPage() { return (
-
-

{t("diary.title")}

- -
+

{t("diary.title")}

+ +
+
+ + + ) +} + function SettingsGroup({ label, items,