add react-hot-toast and surface OpenAI API errors to users (#328)
This commit is contained in:
@@ -2,12 +2,14 @@ import '@/styles/globals.css';
|
||||
import { appWithTranslation } from 'next-i18next';
|
||||
import type { AppProps } from 'next/app';
|
||||
import { Inter } from 'next/font/google';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
|
||||
function App({ Component, pageProps }: AppProps<{}>) {
|
||||
return (
|
||||
<main className={inter.className}>
|
||||
<Toaster />
|
||||
<Component {...pageProps} />
|
||||
</main>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user