add end date and create logo and fix filter
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { formatRupiah, formatDate } from "@/lib/utils";
|
||||
import { formatRupiah, formatDateRange } from "@/lib/utils";
|
||||
|
||||
interface TripCardProps {
|
||||
id: string;
|
||||
@@ -8,6 +8,7 @@ interface TripCardProps {
|
||||
mountain: string;
|
||||
location: string;
|
||||
date: Date | string;
|
||||
endDate?: Date | string | null;
|
||||
price: number;
|
||||
maxParticipants: number;
|
||||
participantCount: number;
|
||||
@@ -23,6 +24,7 @@ export function TripCard({
|
||||
mountain,
|
||||
location,
|
||||
date,
|
||||
endDate,
|
||||
price,
|
||||
maxParticipants,
|
||||
participantCount,
|
||||
@@ -78,7 +80,7 @@ export function TripCard({
|
||||
</div>
|
||||
<div className="flex items-center gap-1.5">
|
||||
<span className="text-xs text-secondary-500">📅</span>{" "}
|
||||
{formatDate(date)}
|
||||
{formatDateRange(date, endDate)}
|
||||
</div>
|
||||
<div className="flex items-center gap-1.5">
|
||||
<span className="text-xs text-secondary-500">👤</span>{" "}
|
||||
|
||||
Reference in New Issue
Block a user