Renamed directories
This commit is contained in:
14
ui/src/app/airport/[icao]/page.tsx
Normal file
14
ui/src/app/airport/[icao]/page.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { getAirport } from '@/api/airport';
|
||||
import Link from 'next/link';
|
||||
|
||||
export default async function Page({ params }: { params: { icao: string } }) {
|
||||
const { data: airport } = await getAirport({ icao: params.icao });
|
||||
return (
|
||||
<>
|
||||
<div className=''>
|
||||
<h3 className=''>{airport.full_name}</h3>
|
||||
<Link href={'/'}>Back</Link>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
38
ui/src/app/layout.tsx
Normal file
38
ui/src/app/layout.tsx
Normal file
@@ -0,0 +1,38 @@
|
||||
import React from 'react';
|
||||
import RecoilRootWrapper from '@app/recoil-root-wrapper';
|
||||
import Sidebar from '@/components/Sidebar';
|
||||
import Topbar from '@/components/Topbar';
|
||||
import { Inter } from 'next/font/google';
|
||||
import { MantineProvider } from '@mantine/core';
|
||||
import { ModalsProvider } from '@mantine/modals';
|
||||
import 'styles/globals.css';
|
||||
import 'styles/leaflet.css';
|
||||
import '@mantine/core/styles.css';
|
||||
|
||||
export const metadata = {
|
||||
title: 'Aviation Weather',
|
||||
description: ''
|
||||
};
|
||||
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang='en' className='h-full bg-white'>
|
||||
<head>
|
||||
<title>Aviation Weather</title>
|
||||
</head>
|
||||
<body className={`${inter.className} wrapper h-full`}>
|
||||
<RecoilRootWrapper>
|
||||
<MantineProvider>
|
||||
<ModalsProvider>
|
||||
<Topbar />
|
||||
<Sidebar />
|
||||
{children}
|
||||
</ModalsProvider>
|
||||
</MantineProvider>
|
||||
</RecoilRootWrapper>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
6
ui/src/app/page.tsx
Normal file
6
ui/src/app/page.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import React from 'react';
|
||||
import Metar from '@/components/Metars';
|
||||
|
||||
export default function Page() {
|
||||
return <Metar />;
|
||||
}
|
||||
3
ui/src/app/profile/page.tsx
Normal file
3
ui/src/app/profile/page.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export default async function Page() {
|
||||
return <></>;
|
||||
}
|
||||
8
ui/src/app/recoil-root-wrapper.tsx
Normal file
8
ui/src/app/recoil-root-wrapper.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { RecoilRoot } from 'recoil';
|
||||
import React, { ReactNode } from 'react';
|
||||
|
||||
export default function RecoilRootWrapper({ children }: { children: ReactNode }) {
|
||||
return <RecoilRoot>{children}</RecoilRoot>;
|
||||
}
|
||||
Reference in New Issue
Block a user