plane/web/pages/_app.tsx
Aaryan Khandelwal e4f48d6878
[WEB-393] feat: new emoji picker using emoji-picker-react (#3868)
* chore: emoji-picker-react package added

* chore: emoji and emoji picker component added

* chore: emoji picker custom style added

* chore: migration of the emoji's

* chore: migration changes

* chore: project logo prop

* chore: added logo props in the serializer

* chore: removed unused keys

* chore: implement emoji picker throughout the web app

* style: emoji icon picker

* chore: update project logo renderer in the space app

* chore: migrations fixes

---------

Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
2024-03-06 19:15:48 +05:30

44 lines
1.2 KiB
TypeScript

import { ReactElement } from "react";
import Head from "next/head";
import { AppProps } from "next/app";
import { ThemeProvider } from "next-themes";
// styles
import "styles/globals.css";
import "styles/command-pallette.css";
import "styles/nprogress.css";
import "styles/emoji.css";
import "styles/react-day-picker.css";
// constants
import { THEMES } from "constants/themes";
import { SITE_TITLE } from "constants/seo-variables";
// mobx store provider
import { StoreProvider } from "contexts/store-context";
import { AppProvider } from "lib/app-provider";
// types
import { NextPageWithLayout } from "lib/types";
type AppPropsWithLayout = AppProps & {
Component: NextPageWithLayout;
};
function MyApp({ Component, pageProps }: AppPropsWithLayout) {
// Use the layout defined at the page level, if available
const getLayout = Component.getLayout ?? ((page: ReactElement) => page);
return (
<>
<Head>
<title>{SITE_TITLE}</title>
</Head>
<StoreProvider {...pageProps}>
<ThemeProvider themes={THEMES} defaultTheme="system">
<AppProvider>{getLayout(<Component {...pageProps} />)}</AppProvider>
</ThemeProvider>
</StoreProvider>
</>
);
}
export default MyApp;