Skip to content

Commit

Permalink
Update main.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 15, 2024
1 parent 16a1ec9 commit 61420e9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
34 changes: 18 additions & 16 deletions backend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,22 @@ const theme = createTheme(
)

ReactDOM.createRoot(document.getElementById('root')!).render(
<ThemeProvider theme={theme}>
<CssBaseline>
<App />
<ToastContainer
position="bottom-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
pauseOnFocusLoss={false}
draggable={false}
pauseOnHover
theme="dark"
/>
</CssBaseline>
</ThemeProvider>,
<React.StrictMode>
<ThemeProvider theme={theme}>
<CssBaseline>
<App />
<ToastContainer
position="bottom-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
pauseOnFocusLoss={false}
draggable={false}
pauseOnHover
theme="dark"
/>
</CssBaseline>
</ThemeProvider>
</React.StrictMode>,
)
37 changes: 20 additions & 17 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ const theme = createTheme(
// },
// Selected
'&[aria-selected="true"]': {
backgroundColor: '#faad43 !important',
// backgroundColor: '#faad43 !important',
backgroundColor: '#F7B644 !important',
},
},
},
Expand All @@ -256,20 +257,22 @@ const theme = createTheme(
)

ReactDOM.createRoot(document.getElementById('root')!).render(
<ThemeProvider theme={theme}>
<CssBaseline>
<App />
<ToastContainer
position="bottom-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
pauseOnFocusLoss={false}
draggable={false}
pauseOnHover
theme="dark"
/>
</CssBaseline>
</ThemeProvider>,
<React.StrictMode>
<ThemeProvider theme={theme}>
<CssBaseline>
<App />
<ToastContainer
position="bottom-right"
autoClose={5000}
hideProgressBar={false}
newestOnTop={false}
closeOnClick
pauseOnFocusLoss={false}
draggable={false}
pauseOnHover
theme="dark"
/>
</CssBaseline>
</ThemeProvider>
</React.StrictMode>,
)

0 comments on commit 61420e9

Please sign in to comment.