🔧 chore: replace react-hot-toast with custom toast
This commit is contained in:
parent
4d646e1ac0
commit
ba87c6f22a
@ -1,7 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
import assert from 'assert';
|
import assert from 'assert';
|
||||||
import { Toaster } from 'react-hot-toast';
|
|
||||||
import { GQLClient } from 'gql-client';
|
import { GQLClient } from 'gql-client';
|
||||||
|
|
||||||
import { ThemeProvider } from '@material-tailwind/react';
|
import { ThemeProvider } from '@material-tailwind/react';
|
||||||
@ -11,6 +10,7 @@ import '@fontsource/inter';
|
|||||||
import App from './App';
|
import App from './App';
|
||||||
import reportWebVitals from './reportWebVitals';
|
import reportWebVitals from './reportWebVitals';
|
||||||
import { GQLClientProvider } from './context/GQLClientContext';
|
import { GQLClientProvider } from './context/GQLClientContext';
|
||||||
|
import { Toaster } from 'components/shared/Toast/Toaster';
|
||||||
|
|
||||||
const root = ReactDOM.createRoot(
|
const root = ReactDOM.createRoot(
|
||||||
document.getElementById('root') as HTMLElement,
|
document.getElementById('root') as HTMLElement,
|
||||||
@ -26,7 +26,7 @@ root.render(
|
|||||||
<ThemeProvider>
|
<ThemeProvider>
|
||||||
<GQLClientProvider client={gqlClient}>
|
<GQLClientProvider client={gqlClient}>
|
||||||
<App />
|
<App />
|
||||||
<Toaster position="bottom-center" />
|
<Toaster />
|
||||||
</GQLClientProvider>
|
</GQLClientProvider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</React.StrictMode>,
|
</React.StrictMode>,
|
||||||
|
Loading…
Reference in New Issue
Block a user