Skip to content

Commit

Permalink
styled toasts with light and dark
Browse files Browse the repository at this point in the history
  • Loading branch information
sillytsundere committed Apr 5, 2024
1 parent 7d5b0cb commit 14d9446
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ function AppWithTheme() {
return (
<Theme appearance={isDarkMode ? 'dark' : 'light'}>
<App />
</Theme>
);
}

const root = createRoot(document.getElementById('root'));
root.render(
<StrictMode>
<DarkModeProvider>
<AppWithTheme />
<ToastContainer
limit={2}
position="top-right"
Expand All @@ -37,9 +28,18 @@ root.render(
pauseOnFocusLoss
draggable
pauseOnHover
theme="light" //TODO: change to conditional once merged
theme={isDarkMode ? 'light' : 'dark'}
transition:Bounce
/>
</Theme>
);
}

const root = createRoot(document.getElementById('root'));
root.render(
<StrictMode>
<DarkModeProvider>
<AppWithTheme />
</DarkModeProvider>
</StrictMode>,
);

0 comments on commit 14d9446

Please sign in to comment.