This commit is contained in:
josc146
2023-05-15 21:55:57 +08:00
parent 80bfb09972
commit 83f0bb503c
13 changed files with 388 additions and 138 deletions

View File

@@ -28,6 +28,7 @@ import {FC, useEffect, useState} from 'react';
import {Route, Routes, useLocation, useNavigate} from 'react-router';
import {pages} from './pages';
import {useMediaQuery} from 'usehooks-ts';
import {ToastContainer} from 'react-toastify';
const App: FC = () => {
const navigate = useNavigate();
@@ -80,6 +81,19 @@ const App: FC = () => {
</Routes>
</div>
</div>
<ToastContainer
style={{
width: '250px'
}}
position="top-right"
autoClose={4000}
newestOnTop={true}
closeOnClick={false}
rtl={false}
pauseOnFocusLoss={false}
draggable={false}
theme={'dark'}
/>
</FluentProvider>
);
};