From 7c958edca11cb3c3648acaa84ee45a48df300ecb Mon Sep 17 00:00:00 2001 From: mciparelli Date: Thu, 21 Sep 2023 08:56:07 -0300 Subject: [PATCH] format --- components/flight.jsx | 9 ++++----- islands/form-and-results.jsx | 8 +++++--- islands/main-form.jsx | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/components/flight.jsx b/components/flight.jsx index 523fa61..fa3363d 100644 --- a/components/flight.jsx +++ b/components/flight.jsx @@ -10,7 +10,8 @@ function Tax({ data, error, isLoading }) { {isLoading && } {data && `$${Math.floor(data.money / 1000)}K`} {!isLoading && !data && error && "?"} - ) + + ); } export default function Flight({ flight, canje, bgColor }) { @@ -46,8 +47,7 @@ export default function Flight({ flight, canje, bgColor }) {
- {milesDisplay} +{' '} - + {milesDisplay} +
{flight.airline.name} @@ -64,8 +64,7 @@ export default function Flight({ flight, canje, bgColor }) { {flight.availableSeats}
- {milesDisplay} +{' '} - + {milesDisplay} +
diff --git a/islands/form-and-results.jsx b/islands/form-and-results.jsx index 192d3dd..02dbb38 100644 --- a/islands/form-and-results.jsx +++ b/islands/form-and-results.jsx @@ -149,8 +149,8 @@ export default function FormAndResults({ params }) { )} {Boolean(requestsSignal.value.error) && requestsSignal.value.status === "finished" && ( -

{requestsSignal.value.error}

- )} +

{requestsSignal.value.error}

+ )} {(flights === null || flights?.length === 0) && (

No se encontraron vuelos para este tramo.

)} @@ -162,7 +162,9 @@ export default function FormAndResults({ params }) { Tramo Fecha y hora - {canje.name} + Tasas + + {canje.name} + Tasas + AerolĂ­nea Cabina Escalas diff --git a/islands/main-form.jsx b/islands/main-form.jsx index 1c40f77..69a8fb8 100644 --- a/islands/main-form.jsx +++ b/islands/main-form.jsx @@ -34,7 +34,8 @@ function DatesSelect({ initialMonthSearch, params }) { max={formatDate(maxDate)} /> )} - ) + + ); } export default function MainForm({ params, initialMonthSearch, onSubmit }) {