el.xwx.moe/pages/_app.tsx

44 lines
1.6 KiB
TypeScript
Raw Normal View History

2023-04-23 08:26:39 -05:00
// Copyright (C) 2022-present Daniel31x13 <daniel31x13@gmail.com>
// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
// You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
2023-02-18 21:32:02 -06:00
import React from "react";
2023-01-29 12:12:36 -06:00
import "@/styles/globals.css";
2023-02-06 11:59:23 -06:00
import { SessionProvider } from "next-auth/react";
2023-01-29 12:12:36 -06:00
import type { AppProps } from "next/app";
2023-03-28 02:31:50 -05:00
import Head from "next/head";
2023-04-30 15:54:40 -05:00
import AuthRedirect from "@/layouts/AuthRedirect";
2023-01-22 15:39:35 -06:00
2023-01-29 12:12:36 -06:00
export default function App({ Component, pageProps }: AppProps) {
2023-01-22 15:39:35 -06:00
return (
2023-02-06 11:59:23 -06:00
<SessionProvider session={pageProps.session}>
2023-03-28 02:31:50 -05:00
<Head>
<title>Linkwarden</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
</Head>
2023-04-30 15:54:40 -05:00
<AuthRedirect>
2023-02-08 17:58:55 -06:00
<Component {...pageProps} />
2023-04-30 15:54:40 -05:00
</AuthRedirect>
2023-02-06 11:59:23 -06:00
</SessionProvider>
2023-01-22 15:39:35 -06:00
);
}