chore: quality of life improvements (#449)

This commit is contained in:
2022-04-13 22:16:34 +02:00
committed by GitHub
parent e916177569
commit c10817716e
34 changed files with 14038 additions and 11804 deletions

View File

@@ -8,7 +8,8 @@ type Statuses = 'packing' | 'ready';
const useDownloadAll = () => {
const [status, setStatus] = useState<Statuses>('ready');
const { files } = useContext(EncryptionContext);
const allFilesReady = Object.values(files).filter(f => f.status === 'success').length > 1;
const allFilesReady =
Object.values(files).filter((f) => f.status === 'success').length > 1;
const downloadAll = useCallback(() => {
setStatus('packing');