Updated api endpoint structure, fixed issues, worked on admin page

This commit is contained in:
2023-11-21 11:00:01 -05:00
parent cb9db1f3ba
commit 2e048fb1a0
12 changed files with 326 additions and 137 deletions

View File

@@ -53,7 +53,7 @@ export default function Header() {
async function onChange(value: string) {
setSearchValue(value);
const airportData = await getAirports({ name: value, icao: value });
const airportData = await getAirports({ search: value });
setAirports(
airportData.data.map((airport) => ({
key: airport.icao,