Redesign toasts (#103)

* feat(frontend): custom toast

* refactor(frontend): move toast width styling to globals

Co-authored-by: sct <sct@users.noreply.github.com>
This commit is contained in:
Alex Zoitos
2020-10-08 06:12:18 -04:00
committed by GitHub
parent 65b67abae6
commit 7cb92028fb
3 changed files with 114 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import { User } from '../hooks/useUser';
import { IntlProvider } from 'react-intl';
import { LanguageContext, AvailableLocales } from '../context/LanguageContext';
import Head from 'next/head';
import Toast from '../components/Toast';
const loadLocaleData = (locale: string) => {
switch (locale) {
@@ -76,7 +77,7 @@ const CoreApp: Omit<NextAppComponentType, 'origGetInitialProps'> = ({
defaultLocale="en"
messages={loadedMessages}
>
<ToastProvider>
<ToastProvider components={{ Toast }}>
<Head>
<title>Overseerr</title>
</Head>