🔧 chore: index import

This commit is contained in:
Andre H 2024-02-22 17:07:15 +07:00
parent 200ea3ca7b
commit 32918b7930
3 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1,2 @@
export * from './Toaster';
export * from './useToast';

View File

@ -9,8 +9,7 @@ import './index.css';
import '@fontsource/inter'; 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 { Toaster } from 'components/shared/Toast';
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,

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { Button } from 'components/shared/Button'; import { Button } from 'components/shared/Button';
import { useToast } from 'components/shared/Toast/useToast'; import { useToast } from 'components/shared/Toast';
export const renderToastsWithCta = () => { export const renderToastsWithCta = () => {
const { toast, dismiss } = useToast(); const { toast, dismiss } = useToast();