mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
added error pop-up
This commit is contained in:
+11
-1
@@ -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>
|
||||
)}
|
||||
Reference in New Issue
Block a user