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 && ( {!loading && !error && product && (
<> <>
<AirlineDetails
product={product}
onAddToCart={handleAddToCart}
addedToCart={added}
/>
<button <button
onClick={() => router.back()} onClick={() => router.back()}
className="mt-6 text-blue-600 hover:underline" className="mt-6 text-blue-600 hover:underline"
> >
Back to flights Back to flights
</button> </button>
<AirlineDetails
product={product}
onAddToCart={handleAddToCart}
addedToCart={added}
/>
</> </>
)} )}
</main> </main>

View File

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