diff --git a/.gitignore b/.gitignore index 4bca52d..67d0346 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,9 @@ # do not track installed modules -node_modules/ -.vscode/ +/node_modules/ +/.vscode/ # do not track built files -.next/ +/.next/ *.tsbuildinfo next-env.d.ts @@ -14,6 +14,6 @@ yarn-error.log* .pnpm-debug.log* # production -build/ -data/ -confs/ \ No newline at end of file +/build/ +/data/ +/confs/ \ No newline at end of file diff --git a/components/fetcher.tsx b/components/fetcher.tsx new file mode 100644 index 0000000..0a37648 --- /dev/null +++ b/components/fetcher.tsx @@ -0,0 +1 @@ +export const fetcher = (url:string) => fetch(url).then((res) => res.json()); \ No newline at end of file diff --git a/components/layout.tsx b/components/layout.tsx index 780c16b..8482b63 100644 --- a/components/layout.tsx +++ b/components/layout.tsx @@ -1,15 +1,14 @@ -import PageFooter from './footer' -import PageNavbar from './navbar' -import Script from 'next/script' -import { Page, Main } from './styles/generic' - +import PageFooter from './footer'; +import PageNavbar from './navbar'; +import Script from 'next/script'; +import { Page, Main } from './styles/generic'; const Layout = ({ children }: { children: React.ReactNode }) => { return ( -