diff --git a/apps/edr-passenger-web/portal/public/packages/package.jpeg b/apps/edr-passenger-web/portal/public/packages/package.jpeg new file mode 100644 index 000000000..6b42468ae Binary files /dev/null and b/apps/edr-passenger-web/portal/public/packages/package.jpeg differ diff --git a/apps/edr-passenger-web/portal/src/app/packages/[id]/page.tsx b/apps/edr-passenger-web/portal/src/app/packages/[id]/page.tsx index af884f59a..3c8e66b98 100644 --- a/apps/edr-passenger-web/portal/src/app/packages/[id]/page.tsx +++ b/apps/edr-passenger-web/portal/src/app/packages/[id]/page.tsx @@ -531,9 +531,14 @@ function PassengerCountModal({ // uses) — package pricing/currency is fixed per tier and is never affected by // this. No default: nationality is a deliberate choice, same as the normal // flow's search-step picker. - const [nationality, setNationality] = useState<"" | "ETHIOPIAN" | "DJIBOUTIAN" | "OTHER">(""); + const [nationality, setNationality] = useState< + "" | "ETHIOPIAN" | "DJIBOUTIAN" | "OTHER" + >(""); const [showNationalityError, setShowNationalityError] = useState(false); - const natOptions: Array<{ value: "ETHIOPIAN" | "DJIBOUTIAN" | "OTHER"; label: string }> = [ + const natOptions: Array<{ + value: "ETHIOPIAN" | "DJIBOUTIAN" | "OTHER"; + label: string; + }> = [ { value: "ETHIOPIAN", label: "🇪🇹 Ethiopian" }, { value: "DJIBOUTIAN", label: "🇩🇯 Djiboutian" }, { value: "OTHER", label: "🌍 Other" }, @@ -1037,7 +1042,7 @@ export default function PackageDetailPage() { {/* Hero */}
{pkg.name} (a.priceMinor < b.priceMinor ? a : b)); - return { amount: (min.priceMinor * multiplier) / 100, currency: min.currency }; + return { + amount: (min.priceMinor * multiplier) / 100, + currency: min.currency, + }; } function fmtPrice(minor: number, currency: string): string { @@ -148,7 +152,7 @@ function AvailBar({ booked, total }: { booked: number; total: number }) { // ─── Featured Card (first package — full-width, image left) ─────────────────── function FeaturedCard({ pkg }: { pkg: HolidayPackage }) { - const multiplier = pkg.journeyType === 'ROUND_TRIP' ? 2 : 1; + const multiplier = pkg.journeyType === "ROUND_TRIP" ? 2 : 1; const price = minPrice(pkg.priceTiers, multiplier); const origin = pkg.outboundSchedule?.originStation; const dest = pkg.outboundSchedule?.destinationStation; @@ -161,7 +165,7 @@ function FeaturedCard({ pkg }: { pkg: HolidayPackage }) { {/* ── Left: Image ── */}
{pkg.name}
)} -
{/* ── Right: Content ── */} @@ -319,7 +322,7 @@ function FeaturedCard({ pkg }: { pkg: HolidayPackage }) { // ─── Regular Package Card ───────────────────────────────────────────────────── function PackageCard({ pkg }: { pkg: HolidayPackage }) { - const multiplier = pkg.journeyType === 'ROUND_TRIP' ? 2 : 1; + const multiplier = pkg.journeyType === "ROUND_TRIP" ? 2 : 1; const price = minPrice(pkg.priceTiers, multiplier); const origin = pkg.outboundSchedule?.originStation; const dest = pkg.outboundSchedule?.destinationStation;