diff --git a/.npmrc b/.npmrc deleted file mode 100644 index e6edee3..0000000 --- a/.npmrc +++ /dev/null @@ -1,3 +0,0 @@ -always-auth=true -//npm.greensock.com/:_authToken=4290db7e-0d2d-4ba7-92e1-bfada85d5aa3 -@gsap:registry=https://npm.greensock.com \ No newline at end of file diff --git a/README.md b/README.md index 64bd13f..90511e4 100644 --- a/README.md +++ b/README.md @@ -81,9 +81,9 @@ The main endpoint `/api/search-flights` accepts the following parameters: - `originAirports`: Comma-separated airport codes - `wantedCountries`: Comma-separated country names - `adults`: Number of adult passengers +- `teens`: Number of teen passengers - `children`: Number of child passengers -- `infants`: Number of infant passengers -- `teens`: Number of teen passengers +- `infants`: Number of infant passengers (because ryanair has 25eur flat infant seat fee, the api ignores infants) #### Response Format diff --git a/src/components/react/FlightResults.tsx b/src/components/react/FlightResults.tsx index 4969581..62f4ba0 100644 --- a/src/components/react/FlightResults.tsx +++ b/src/components/react/FlightResults.tsx @@ -5,6 +5,8 @@ import { calculateTripDays, getPriceColor, INFANT_SEAT_PRICE, + RESERVED_SEAT_FEE, + calculateTotalPrice, } from "../../utils/flightUtils"; import { useState, useEffect } from "react"; import { Frown } from "lucide-react"; @@ -25,9 +27,41 @@ export function LoadingIndicator() { return (