Skip to content

Commit 217437e

Browse files
committed
feat: complete dynamic destinations and functional settlement flow
1 parent f05a193 commit 217437e

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/pages/Plan.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function Plan() {
144144
const commonDestinations = ["tokyo", "paris", "bali", "barcelona", "london", "dubai", "new york", "murchison falls", "uganda"];
145145
for (const d of commonDestinations) {
146146
if (lowerInput.includes(d)) {
147-
destination = d.charAt(0) * 1.toUpperCase() + d.slice(1);
147+
destination = d.charAt(0).toUpperCase() + d.slice(1);
148148
break;
149149
}
150150
}

src/pages/Trips.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ export default function Trips() {
1010
{ label: "Network Rewards", value: "85 ExF", sub: "Stake: 1,200 EXF", icon: Zap, color: "text-purple-400" }
1111
];
1212

13-
const trips = [
13+
const [trips, setTrips] = useState([
1414
{
1515
destination: "Uganda Safari",
1616
dates: "Oct 12 – Oct 17, 2026",
1717
cost: "1,450 cUSD",
1818
status: "active",
19+
id: "TRP-UG502",
1920
agents: ["SkyFlow", "StayBot", "LocalGuide"]
2021
},
2122
{
@@ -50,7 +51,13 @@ export default function Trips() {
5051
id: "TRP-BAL88",
5152
agents: ["SkyFlow", "StayBot", "LocalGuide"]
5253
},
53-
];
54+
]);
55+
56+
const handleFinalizePayment = (id: string) => {
57+
setTrips(prev => prev.map(t =>
58+
t.id === id ? { ...t, status: 'active' } : t
59+
));
60+
};
5461

5562
return (
5663
<div className="p-6 md:p-10 max-w-6xl mx-auto py-16">

0 commit comments

Comments
 (0)