From a7f642cd3bebbc7a7043752e154992d35c54fcf1 Mon Sep 17 00:00:00 2001 From: Oliver Bryan Date: Sun, 8 Feb 2026 07:25:27 +0000 Subject: [PATCH] removed unnecessary TravelListItem component --- src/App.tsx | 14 +++++++++----- src/components/TravelListItem.tsx | 25 ------------------------- 2 files changed, 9 insertions(+), 30 deletions(-) delete mode 100644 src/components/TravelListItem.tsx diff --git a/src/App.tsx b/src/App.tsx index 6839f961..0e2111ab 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -15,7 +15,6 @@ import { TimeSince } from "@/components/time-since"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { type ProjectEntry, projectList, projects } from "@/projects"; import { locationPhotos, locations } from "@/travel"; -import { TravelListItem } from "./components/TravelListItem"; import { ThemeToggle } from "./components/theme-toggle"; import { Button } from "./components/ui/button"; import { cn } from "./lib/utils"; @@ -246,16 +245,21 @@ function Home() {
{locations.map((location, index) => ( <> - { setActivePhoto(null); setActiveLocation((prev) => prev === index ? null : index, ); }} - /> + variant="dummy" + size="sm" + > + {location.city}, {location.country} - {location.date} + {activeLocation === index && (locationPhotos[location.id].length === 0 ? (
diff --git a/src/components/TravelListItem.tsx b/src/components/TravelListItem.tsx deleted file mode 100644 index dba4fb23..00000000 --- a/src/components/TravelListItem.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import type { MouseEventHandler } from "react"; -import { cn } from "@/lib/utils"; -import type { TravelMetadata } from "@/travel"; -import { Button } from "./ui/button"; - -export function TravelListItem({ - metadata, - onClick, -}: { - metadata: TravelMetadata; - onClick: MouseEventHandler; -}) { - return ( - - ); -}