This commit is contained in:
Daniel Shleifman
2021-06-18 20:28:10 +03:00
parent 4654c1d7fa
commit 8d555db847

View File

@@ -96,6 +96,7 @@ export default function App() {
</LanguageSwitch>
</div>
</AppHeader>
<ThemeProvider theme={darkTheme}>
<Sidebar
isOffline={isOffline}
@@ -104,10 +105,13 @@ export default function App() {
setIsDonationDialogOpen={setIsDonationDialogOpen}
/>
</ThemeProvider>
<TorrentList isOffline={isOffline} torrents={torrents} isLoading={isLoading} />
<ThemeProvider theme={lightTheme}>
{isDonationDialogOpen && <DonateDialog onClose={() => setIsDonationDialogOpen(false)} />}
</ThemeProvider>
{!JSON.parse(localStorage.getItem('snackbarIsClosed')) && <DonateSnackbar />}
</AppWrapper>
</Div100vh>