mirror of
https://github.com/sct/overseerr.git
synced 2025-10-02 16:43:16 +02:00
23 lines
510 B
TypeScript
23 lines
510 B
TypeScript
import React from 'react';
|
|
import '../styles/globals.css';
|
|
import App from 'next/app';
|
|
import Layout from '../components/Layout';
|
|
import LoginPage from './login';
|
|
|
|
class CoreApp extends App {
|
|
public render(): JSX.Element {
|
|
const { Component, pageProps, router } = this.props;
|
|
if (router.asPath == '/login') {
|
|
return <LoginPage {...pageProps} />;
|
|
} else {
|
|
return (
|
|
<Layout>
|
|
<Component {...pageProps} />
|
|
</Layout>
|
|
);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default CoreApp;
|