diff --git a/src/App.tsx b/src/App.tsx index bd900fe..8eb8bf1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,7 +13,6 @@ import NewProposalPopupForMain from '@/components/NewProposalPopupForMain/NewPro import { FaArrowDown, FaFilter } from 'react-icons/fa'; import { Route, Routes } from 'react-router-dom'; import ProposalListForMain from './components/NewProposalPopupForMain/ProposalListForMain'; -import { Slide, ToastContainer } from 'react-toastify'; import styles from './App.module.css'; import FilterMenu from './components/FilterMenu/FilterMenu'; import SimpleColorPicker from '@/components/ColorPicker/SimpleColorPicker.tsx'; @@ -322,22 +321,6 @@ function App() { } /> - ); // diff --git a/src/main.tsx b/src/main.tsx index 595516f..5543dc6 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -6,13 +6,31 @@ import { BrowserRouter } from 'react-router-dom'; import { PixelawProvider } from '@/providers/PixelawProvider.tsx'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { useProposalSubscription } from '@/hooks/useProposals.ts'; +import {Slide, ToastContainer} from "react-toastify"; const queryClient = new QueryClient(); // putting it here for now because App updates like Crazy -const Test = () => { +const Toast = () => { useProposalSubscription(); - return <>; + return ( + + ); }; ReactDOM.createRoot(document.getElementById('root')!).render( @@ -21,7 +39,7 @@ ReactDOM.createRoot(document.getElementById('root')!).render( - +