ripped out mantine, replaced with chakra

This commit is contained in:
Kyle Corbitt
2023-06-23 17:23:30 -07:00
parent 5fcefad461
commit c497b74208
12 changed files with 1331 additions and 647 deletions

View File

@@ -2,8 +2,7 @@ import { type Session } from "next-auth";
import { SessionProvider } from "next-auth/react";
import { type AppType } from "next/app";
import { api } from "~/utils/api";
import { MantineProvider } from "@mantine/core";
import { Notifications } from "@mantine/notifications";
import { ChakraProvider } from "@chakra-ui/react";
const MyApp: AppType<{ session: Session | null }> = ({
Component,
@@ -11,10 +10,9 @@ const MyApp: AppType<{ session: Session | null }> = ({
}) => {
return (
<SessionProvider session={session}>
<MantineProvider withGlobalStyles withNormalizeCSS>
<Notifications position="bottom-center" />
<ChakraProvider>
<Component {...pageProps} />
</MantineProvider>
</ChakraProvider>
</SessionProvider>
);
};

View File

@@ -1,20 +0,0 @@
import { createGetInitialProps } from "@mantine/next";
import Document, { Head, Html, Main, NextScript } from "next/document";
const getInitialProps = createGetInitialProps();
export default class _Document extends Document {
static getInitialProps = getInitialProps;
render() {
return (
<Html>
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}

View File

@@ -1,4 +1,4 @@
import { Box, Center } from "@mantine/core";
import { Box, Center } from "@chakra-ui/react";
import { useRouter } from "next/router";
import OutputsTable from "~/components/OutputsTable";
import AppNav from "~/components/nav/AppNav";