2022-05-27 07:23:43 +02:00
|
|
|
// All these imports are almost exclusively for the Admin.
|
|
|
|
// We should not be loading them for the main frontend UI.
|
|
|
|
|
2021-02-04 18:17:20 +01:00
|
|
|
// order matters!
|
2022-05-07 08:32:33 +02:00
|
|
|
import '../styles/variables.css';
|
2022-04-19 23:33:43 +02:00
|
|
|
import '../styles/global.less';
|
|
|
|
import '../styles/globals.scss';
|
2022-07-01 22:49:42 +02:00
|
|
|
import '../styles/ant-overrides.scss';
|
2020-10-22 10:03:15 +02:00
|
|
|
|
2022-10-28 08:39:26 +02:00
|
|
|
// TODO: Move this videojs sass to the player component.
|
2022-09-07 09:00:28 +02:00
|
|
|
import '../components/video/VideoJS/VideoJS.scss';
|
2022-05-27 06:44:54 +02:00
|
|
|
|
2020-10-23 01:18:18 +02:00
|
|
|
import { AppProps } from 'next/app';
|
2023-01-09 10:06:39 +01:00
|
|
|
import { ReactElement, ReactNode } from 'react';
|
|
|
|
import { NextPage } from 'next';
|
2022-05-26 05:38:40 +02:00
|
|
|
import { RecoilRoot } from 'recoil';
|
2020-10-23 01:18:18 +02:00
|
|
|
|
2023-01-09 10:06:39 +01:00
|
|
|
export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
|
|
|
|
getLayout?: (page: ReactElement) => ReactNode;
|
|
|
|
};
|
2022-05-30 06:51:00 +02:00
|
|
|
|
2023-01-09 10:06:39 +01:00
|
|
|
type AppPropsWithLayout = AppProps & {
|
|
|
|
Component: NextPageWithLayout;
|
2022-09-07 09:00:28 +02:00
|
|
|
};
|
2020-10-01 00:12:10 +02:00
|
|
|
|
2023-01-09 10:06:39 +01:00
|
|
|
export default function App({ Component, pageProps }: AppPropsWithLayout) {
|
2023-01-12 07:43:34 +01:00
|
|
|
const layout = Component.getLayout ?? (page => page);
|
2023-01-09 10:06:39 +01:00
|
|
|
|
2023-01-12 07:43:34 +01:00
|
|
|
return layout(
|
2023-01-09 10:06:39 +01:00
|
|
|
<RecoilRoot>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</RecoilRoot>,
|
|
|
|
);
|
|
|
|
}
|