added icons for noserver or no files

This commit is contained in:
Daniel Shleifman
2021-06-17 19:19:29 +03:00
parent 05bf5421b2
commit 3bd76d4aa1
12 changed files with 143 additions and 58 deletions

View File

@@ -31,14 +31,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>