added error pop-up

This commit is contained in:
plebbitor
2023-03-13 22:15:57 +01:00
parent c66a782e53
commit ca304d9f23
7 changed files with 49 additions and 13 deletions
+11 -1
View File
@@ -7,9 +7,11 @@ import Board from './components/Board';
import Thread from './components/Thread';
import Catalog from './components/Catalog';
import NotFound from './components/NotFound';
import { createGlobalStyle } from 'styled-components';
import styled, { createGlobalStyle } from 'styled-components';
import 'react-tooltip/dist/react-tooltip.css';
import 'react-toastify/dist/ReactToastify.css';
import preloadImages from './utils/preloadImages';
import { ToastContainer } from 'react-toastify';
const GlobalStyle = createGlobalStyle`
@@ -30,6 +32,13 @@ const GlobalStyle = createGlobalStyle`
}
`;
const StyledContainer = styled(ToastContainer)`
.Toastify__toast {
border-radius: 0px;
font-size: 11pt;
}
`;
export default function App() {
const { bodyStyle, setBodyStyle } = useBoardStore(state => state);
@@ -69,5 +78,6 @@ export default function App() {
</Route>
<Route path='*' element={<NotFound />} />
</Routes>
<StyledContainer />
</div>
)}