Removed old add file from storage buttons

This commit is contained in:
Connor Yoh 2025-08-01 18:02:52 +01:00
parent 0d2a72b42e
commit c5081a413f
2 changed files with 30 additions and 41 deletions

View File

@ -47,8 +47,7 @@
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [
"react-app", "react-app"
"react-app/jest"
] ]
}, },
"browserslist": { "browserslist": {

View File

@ -665,6 +665,20 @@ const FileEditor = ({
return ( return (
<Dropzone
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' }}> <Box pos="relative" h="100vh" style={{ overflow: 'auto' }}>
<LoadingOverlay visible={false} /> <LoadingOverlay visible={false} />
@ -679,31 +693,6 @@ const FileEditor = ({
</Button> </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>
</Dropzone>
</>
)}
</Group> </Group>
@ -867,6 +856,7 @@ const FileEditor = ({
</Notification> </Notification>
)} )}
</Box> </Box>
</Dropzone>
); );
}; };