Implemented default airports, fixed loading airport endpoints
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import RecoilRootWrapper from '@app/recoil-root-wrapper';
|
||||
|
||||
|
||||
import '@fortawesome/fontawesome-svg-core/styles.css';
|
||||
// Prevent fontawesome from adding its CSS since we did it manually above:
|
||||
import { config } from '@fortawesome/fontawesome-svg-core';
|
||||
@@ -9,20 +8,23 @@ config.autoAddCss = false;
|
||||
import 'styles/globals.css';
|
||||
import Link from 'next/link';
|
||||
|
||||
import 'styles/leaflet.css';
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.1/dist/leaflet.css" />
|
||||
<head>
|
||||
<title>Aviation Weather</title>
|
||||
</head>
|
||||
<body className='bg-gray-600'>
|
||||
<div className="flex justify-between bg-gray-700 px-4 py-1 sm:px-6 select-none">
|
||||
<h3 className="text-lg font-bold leading-6 text-gray-200">Aviation Weather</h3>
|
||||
<Link className='text-base text-gray-200' href={'/profile'}>Profile</Link>
|
||||
</div>
|
||||
<RecoilRootWrapper>{children}</RecoilRootWrapper>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
return (
|
||||
<html lang='en'>
|
||||
<head>
|
||||
<title>Aviation Weather</title>
|
||||
</head>
|
||||
<body className='bg-gray-600'>
|
||||
<div className='flex justify-between bg-gray-700 px-4 py-1 sm:px-6 select-none'>
|
||||
<h3 className='text-lg font-bold leading-6 text-gray-200'>Aviation Weather</h3>
|
||||
<Link className='text-base text-gray-200' href={'/profile'}>
|
||||
Profile
|
||||
</Link>
|
||||
</div>
|
||||
<RecoilRootWrapper>{children}</RecoilRootWrapper>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user