feat: sync and update with all changes from fork (#720)
* feat: sync and update with all changes from fork * refactor: extract clipboard copy logic into custom hook * fix: correct spelling of DEFAULT_REFRESH_FREQUENCY_MS in Stamps and WalletBalance providers * refactor(ui-tests): replace fixed sleeps with condition-based waits * fix: handle null values for size and granteeCount in infoGroups * fix(lint): add newline at end of file in useClipboardCopy hook * fix(ui-tests): page.goto URL * refactor: update import paths for useClipboardCopy --------- Co-authored-by: Ferenc Sárai <sarai.ferenc@gmail.com>
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { useCallback, useState, useContext, useRef, useEffect } from 'react'
|
||||
import type { FileInfo, FileInfoOptions, UploadProgress } from '@solarpunkltd/file-manager-lib'
|
||||
import { useCallback, useContext, useEffect, useRef, useState } from 'react'
|
||||
|
||||
import { Context as FMContext } from '../../../providers/FileManager'
|
||||
import { Context as SettingsContext } from '../../../providers/Settings'
|
||||
import type { FileInfo, FileInfoOptions, UploadProgress } from '@solarpunkltd/file-manager-lib'
|
||||
import { ConflictAction, useUploadConflictDialog } from './useUploadConflictDialog'
|
||||
import { formatBytes, safeSetState, truncateNameMiddle } from '../utils/common'
|
||||
import { uuidV4 } from '../../../utils'
|
||||
import { FILE_MANAGER_EVENTS } from '../constants/common'
|
||||
import {
|
||||
DownloadProgress,
|
||||
DownloadState,
|
||||
@@ -11,12 +12,12 @@ import {
|
||||
TrackDownloadProps,
|
||||
TransferStatus,
|
||||
} from '../constants/transfers'
|
||||
import { validateStampStillExists, verifyDriveSpace } from '../utils/bee'
|
||||
import { isTrashed } from '../utils/common'
|
||||
import { abortDownload } from '../utils/download'
|
||||
import { AbortManager } from '../utils/abortManager'
|
||||
import { uuidV4 } from '../../../utils'
|
||||
import { FILE_MANAGER_EVENTS } from '../constants/common'
|
||||
import { validateStampStillExists, verifyDriveSpace } from '../utils/bee'
|
||||
import { formatBytes, isTrashed, safeSetState, truncateNameMiddle } from '../utils/common'
|
||||
import { abortDownload } from '../utils/download'
|
||||
|
||||
import { ConflictAction, useUploadConflictDialog } from './useUploadConflictDialog'
|
||||
|
||||
const SAMPLE_WINDOW_MS = 500
|
||||
const ETA_SMOOTHING = 0.3
|
||||
|
||||
Reference in New Issue
Block a user