mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-02 18:45:21 +00:00
Removed old add file from storage buttons
This commit is contained in:
parent
0d2a72b42e
commit
c5081a413f
@ -47,8 +47,7 @@
|
|||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
"react-app",
|
"react-app"
|
||||||
"react-app/jest"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
|
@ -665,46 +665,35 @@ const FileEditor = ({
|
|||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box pos="relative" h="100vh" style={{ overflow: 'auto' }}>
|
<Dropzone
|
||||||
<LoadingOverlay visible={false} />
|
onDrop={handleFileUpload}
|
||||||
|
accept={["*/*"]}
|
||||||
|
multiple={true}
|
||||||
|
maxSize={2 * 1024 * 1024 * 1024}
|
||||||
|
style={{
|
||||||
|
height: '100vh',
|
||||||
|
border: 'none',
|
||||||
|
borderRadius: 0,
|
||||||
|
backgroundColor: 'transparent'
|
||||||
|
}}
|
||||||
|
activateOnClick={false}
|
||||||
|
activateOnDrag={true}
|
||||||
|
>
|
||||||
|
<Box pos="relative" h="100vh" style={{ overflow: 'auto' }}>
|
||||||
|
<LoadingOverlay visible={false} />
|
||||||
|
|
||||||
<Box p="md" pt="xl">
|
<Box p="md" pt="xl">
|
||||||
<Group mb="md">
|
<Group mb="md">
|
||||||
{showBulkActions && !toolMode && (
|
{showBulkActions && !toolMode && (
|
||||||
<>
|
<>
|
||||||
<Button onClick={selectAll} variant="light">Select All</Button>
|
<Button onClick={selectAll} variant="light">Select All</Button>
|
||||||
<Button onClick={deselectAll} variant="light">Deselect All</Button>
|
<Button onClick={deselectAll} variant="light">Deselect All</Button>
|
||||||
<Button onClick={closeAllFiles} variant="light" color="orange">
|
<Button onClick={closeAllFiles} variant="light" color="orange">
|
||||||
Close All
|
Close All
|
||||||
</Button>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Load from storage and upload buttons */}
|
|
||||||
{showUpload && (
|
|
||||||
<>
|
|
||||||
<Button
|
|
||||||
variant="outline"
|
|
||||||
color="blue"
|
|
||||||
onClick={() => setShowFilePickerModal(true)}
|
|
||||||
>
|
|
||||||
Load from Storage
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Dropzone
|
|
||||||
onDrop={handleFileUpload}
|
|
||||||
accept={["*/*"]}
|
|
||||||
multiple={true}
|
|
||||||
maxSize={2 * 1024 * 1024 * 1024}
|
|
||||||
style={{ display: 'contents' }}
|
|
||||||
>
|
|
||||||
<Button variant="outline" color="green">
|
|
||||||
Upload Files
|
|
||||||
</Button>
|
</Button>
|
||||||
</Dropzone>
|
</>
|
||||||
</>
|
)}
|
||||||
)}
|
</Group>
|
||||||
</Group>
|
|
||||||
|
|
||||||
|
|
||||||
{files.length === 0 && !localLoading && !zipExtractionProgress.isExtracting ? (
|
{files.length === 0 && !localLoading && !zipExtractionProgress.isExtracting ? (
|
||||||
@ -866,7 +855,8 @@ const FileEditor = ({
|
|||||||
{error}
|
{error}
|
||||||
</Notification>
|
</Notification>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
</Dropzone>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user