Merge branch 'master' into use-auto-dark-palette-and-About

This commit is contained in:
nikk
2021-06-17 20:39:16 +03:00
committed by GitHub
12 changed files with 136 additions and 56 deletions

View File

@@ -33,14 +33,15 @@ const fnRemoveAll = () => {
})
}
export default function RemoveAll() {
export default function RemoveAll({ isOffline, isLoading }) {
const { t } = useTranslation()
const [open, setOpen] = useState(false)
const closeDialog = () => setOpen(false)
const openDialog = () => setOpen(true)
return (
<>
<ListItem button key={t('RemoveAll')} onClick={openDialog}>
<ListItem disabled={isOffline || isLoading} button key={t('RemoveAll')} onClick={openDialog}>
<ListItemIcon>
<DeleteIcon />
</ListItemIcon>