mirror of
https://github.com/morten-olsen/parcel.git
synced 2026-02-08 01:36:24 +01:00
chore: quality of life improvements (#449)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user