chore: moving route elsewhere and align

This commit is contained in:
2025-11-24 23:51:39 +01:00
parent e301110184
commit d66bed4b99
2 changed files with 166 additions and 166 deletions

View File

@@ -86,18 +86,18 @@ export default function AirlineProductPage() {
{!loading && !error && product && (
<>
<AirlineDetails
product={product}
onAddToCart={handleAddToCart}
addedToCart={added}
/>
<button
onClick={() => router.back()}
className="mt-6 text-blue-600 hover:underline"
>
Back to flights
</button>
<AirlineDetails
product={product}
onAddToCart={handleAddToCart}
addedToCart={added}
/>
</>
)}
</main>

View File

@@ -86,18 +86,18 @@ export default function HotelProductPage() {
{!loading && !error && product && (
<>
<HotelDetails
product={product}
onAddToCart={handleAddToCart}
addedToCart={added}
/>
<button
onClick={() => router.back()}
className="mt-6 text-blue-600 hover:underline"
>
Back to rooms
</button>
<HotelDetails
product={product}
onAddToCart={handleAddToCart}
addedToCart={added}
/>
</>
)}
</main>