Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mciparelli committed Sep 21, 2023
1 parent 30507c3 commit 7c958ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
9 changes: 4 additions & 5 deletions components/flight.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ function Tax({ data, error, isLoading }) {
{isLoading && <Spinner />}
{data && `$${Math.floor(data.money / 1000)}K`}
{!isLoading && !data && error && "?"}
</>)
</>
);
}

export default function Flight({ flight, canje, bgColor }) {
Expand Down Expand Up @@ -46,8 +47,7 @@ export default function Flight({ flight, canje, bgColor }) {
</td>
<td class={`${bgColor} px-2 lg:hidden`}>
<div class="inline-flex">
{milesDisplay} +{' '}
<Tax {...taxInfo} />
{milesDisplay} + <Tax {...taxInfo} />
</div>
</td>
<td class={`${bgColor} px-2`}>{flight.airline.name}</td>
Expand All @@ -64,8 +64,7 @@ export default function Flight({ flight, canje, bgColor }) {
<td class={`${bgColor} px-2`}>{flight.availableSeats}</td>
<td class={`${bgColor} px-2 hidden lg:table-cell`}>
<div class="inline-flex">
{milesDisplay} +{' '}
<Tax {...taxInfo} />
{milesDisplay} + <Tax {...taxInfo} />
</div>
</td>
</tr>
Expand Down
8 changes: 5 additions & 3 deletions islands/form-and-results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export default function FormAndResults({ params }) {
)}
{Boolean(requestsSignal.value.error) &&
requestsSignal.value.status === "finished" && (
<p class="m-auto">{requestsSignal.value.error}</p>
)}
<p class="m-auto">{requestsSignal.value.error}</p>
)}
{(flights === null || flights?.length === 0) && (
<p class="m-auto">No se encontraron vuelos para este tramo.</p>
)}
Expand All @@ -162,7 +162,9 @@ export default function FormAndResults({ params }) {
<tr>
<th class="py-4 bg-blue-400 px-2">Tramo</th>
<th class="bg-blue-400 px-2">Fecha y hora</th>
<th class="bg-blue-400 px-2 lg:hidden">{canje.name} + Tasas</th>
<th class="bg-blue-400 px-2 lg:hidden">
{canje.name} + Tasas
</th>
<th class="bg-blue-400 px-2">Aerolínea</th>
<th class="bg-blue-400 px-2">Cabina</th>
<th class="bg-blue-400 px-2">Escalas</th>
Expand Down
3 changes: 2 additions & 1 deletion islands/main-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function DatesSelect({ initialMonthSearch, params }) {
max={formatDate(maxDate)}
/>
)}
</fieldset>)
</fieldset>
);
}

export default function MainForm({ params, initialMonthSearch, onSubmit }) {
Expand Down

0 comments on commit 7c958ed

Please sign in to comment.