add react-hot-toast and surface OpenAI API errors to users (#328)

This commit is contained in:
Jason Banich
2023-04-01 22:05:07 -07:00
committed by GitHub
parent 23ad285a4b
commit b7b6bbaaca
6 changed files with 78 additions and 5 deletions
+2
View File
@@ -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>
);