fix merge errors

This commit is contained in:
nikk gitanes
2021-06-17 22:18:48 +03:00
parent abd379ed55
commit 3ec9b58ebc
4 changed files with 11 additions and 12 deletions

View File

@@ -270,7 +270,7 @@ export default function AddDialog({
{isLoadingButton ? ( {isLoadingButton ? (
<CircularProgress style={{ color: 'white' }} size={20} /> <CircularProgress style={{ color: 'white' }} size={20} />
) : ( ) : (
t(isEditMode ? 'Save' : 'Add' ) t(isEditMode ? 'Save' : 'Add')
)} )}
</Button> </Button>
</ButtonWrapper> </ButtonWrapper>

View File

@@ -21,28 +21,21 @@ const Sidebar = ({ isDrawerOpen, setIsDonationDialogOpen, isOffline, isLoading }
<AppSidebarStyle isDrawerOpen={isDrawerOpen}> <AppSidebarStyle isDrawerOpen={isDrawerOpen}>
<List> <List>
<AddDialogButton isOffline={isOffline} isLoading={isLoading} /> <AddDialogButton isOffline={isOffline} isLoading={isLoading} />
<RemoveAll isOffline={isOffline} isLoading={isLoading} /> <RemoveAll isOffline={isOffline} isLoading={isLoading} />
</List> </List>
<Divider /> <Divider />
<List> <List>
<SettingsDialog /> <SettingsDialog />
<CloseServer isOffline={isOffline} isLoading={isLoading} />
</List> </List>
<Divider />
<List> <List>
<AboutDialog /> <AboutDialog />
<ListItem button onClick={() => setIsDonationDialogOpen(true)}> <ListItem button onClick={() => setIsDonationDialogOpen(true)}>
<ListItemIcon> <ListItemIcon>
<CreditCardIcon /> <CreditCardIcon />
</ListItemIcon> </ListItemIcon>
<ListItemText primary={t('Donate')} /> <ListItemText primary={t('Donate')} />
</ListItem> </ListItem>
<CloseServer isOffline={isOffline} isLoading={isLoading} />
</List> </List>
</AppSidebarStyle> </AppSidebarStyle>
) )

View File

@@ -93,14 +93,19 @@ export default function App() {
<div style={{ justifySelf: 'end' }}> <div style={{ justifySelf: 'end' }}>
<LanguageSwitch onClick={() => (currentLang === 'en' ? changeLang('ru') : changeLang('en'))}> <LanguageSwitch onClick={() => (currentLang === 'en' ? changeLang('ru') : changeLang('en'))}>
{currentLang === 'en' ? 'ru' : 'en'} {currentLang === 'en' ? 'RU' : 'EN'}
</LanguageSwitch> </LanguageSwitch>
</div> </div>
</AppHeader> </AppHeader>
<ThemeProvider theme={darkTheme}> <ThemeProvider theme={darkTheme}>
<Sidebar isDrawerOpen={isDrawerOpen} setIsDonationDialogOpen={setIsDonationDialogOpen} /> <Sidebar
isOffline={isOffline}
isLoading={isLoading}
isDrawerOpen={isDrawerOpen}
setIsDonationDialogOpen={setIsDonationDialogOpen}
/>
</ThemeProvider> </ThemeProvider>
<TorrentList /> <TorrentList isOffline={isOffline} torrents={torrents} isLoading={isLoading} />
<ThemeProvider theme={lightTheme}> <ThemeProvider theme={lightTheme}>
{isDonationDialogOpen && <DonateDialog onClose={() => setIsDonationDialogOpen(false)} />} {isDonationDialogOpen && <DonateDialog onClose={() => setIsDonationDialogOpen(false)} />}
</ThemeProvider> </ThemeProvider>

View File

@@ -86,5 +86,6 @@ export const LanguageSwitch = styled.div`
@media (max-width: 700px) { @media (max-width: 700px) {
height: 28px; height: 28px;
width: 28px; width: 28px;
font-size: 12px;
} }
` `