feat: add website and folder upload and download (#260)
* feat: add website and folder upload and download * feat: download-share-upload navigation * fix: check for files length in hasIndexDocument * fix: change router dependency * refactor: switch to @ethersphere/manfest-js * fix: hide previews on dropzone, fix spinner align, hide 0 size display * feat: add upload and download history * refactor: change drag and drop text * feat: make history ux better * refactor: improve code based on review * build: add missing react-router dependency * ci: remove beeload * revert(ci): remove beeload This reverts commit 4ce6cb0045a2d9aea3047ab395d214d8d368c532.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { ReactElement } from 'react'
|
||||
import { History } from '../../components/History'
|
||||
import { HISTORY_KEYS } from '../../utils/local-storage'
|
||||
import { FileNavigation } from './FileNavigation'
|
||||
import { UploadArea } from './UploadArea'
|
||||
|
||||
const MAX_FILE_SIZE = 1_000_000_000 // 1 gigabyte
|
||||
|
||||
export function UploadLander(): ReactElement {
|
||||
return (
|
||||
<>
|
||||
<FileNavigation active="UPLOAD" />
|
||||
<UploadArea maximumSizeInBytes={MAX_FILE_SIZE} />
|
||||
<History title="Upload History" localStorageKey={HISTORY_KEYS.UPLOAD_HISTORY} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user