diff --git a/next.config.js b/next.config.js
index 8e8c7c1..ae88795 100755
--- a/next.config.js
+++ b/next.config.js
@@ -2,9 +2,6 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
- experimental: {
- serverActions: true,
- },
}
module.exports = nextConfig
diff --git a/src/app/components/MetarCard.tsx b/src/app/components/MetarCard.tsx
index fadda96..72f98be 100644
--- a/src/app/components/MetarCard.tsx
+++ b/src/app/components/MetarCard.tsx
@@ -3,9 +3,6 @@ import { Metar, getMetars } from "@/js/weather"
import Link from "next/link"
export default async function MetarCard({airports}: {airports: Airport[]}) {
- // await getMetars(defaultAirports).then((result) => {
- // setMetars(result);
- // });
const metars = await getMetars(airports);
for (let i = 0; i < airports.length; i++) {
airports[i].metar = metars[i];
@@ -35,7 +32,7 @@ export default async function MetarCard({airports}: {airports: Airport[]}) {
-
{airport.metar?.station_id} - {airport.name}
+
{airport.name} ({airport.metar?.station_id})
{airport.metar?.raw_text}
{airport.metar?.flight_category}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 84e79c4..0ab9ab2 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,31 +1,8 @@
-// 'use client';
-
import { Airport } from '@/js/airport';
import React from 'react';
import MetarCard from './components/MetarCard';
export default function Page() {
- // const [airports, setAirports] = useRecoilState(airportsState);
-
- // useEffect(() => {
- // const defaultAirports = [
- // new Airport('Leesburg Executive Airport', 'KJYO'),
- // new Airport('Manassas Regional Airpoirt', 'KHEF'),
- // new Airport('Dulles International Airport', 'KIAD'),
- // new Airport('Frederick Municipal Airport', 'KFDK'),
- // new Airport('Eastern West Virginia Regional Airport', 'KMRB'),
- // new Airport('Winchester Regional Airport', 'KOKV'),
- // new Airport('Front Royal-Warren County Airport', 'KFRR'),
- // new Airport('Luray Caverns Airport', 'KLUA'),
- // new Airport('Shenandoah Valley Airport', 'KSHD'),
- // new Airport('Charlottesville-Albemarle Airport', 'KCHO'),
- // new Airport('Culpeper Regional Airport', 'KCJR'),
- // new Airport('Warrenton-Fauquier Airport', 'KHWY'),
- // new Airport('Stafford Regional Airport', 'KRMN'),
- // new Airport('Shannon Airport', 'KEZF'),
- // ];
- // setAirports(defaultAirports);
- // }, []);
const defaultAirports = [
new Airport('Leesburg Executive Airport', 'KJYO'),
new Airport('Manassas Regional Airpoirt', 'KHEF'),