typescript fix for mime types

This commit is contained in:
Reece Browne 2025-08-15 12:02:55 +01:00
parent 9a1c8958f3
commit 72afa6a1e5
2 changed files with 13 additions and 13 deletions

View File

@ -108,7 +108,7 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
className="overflow-hidden p-0"
withCloseButton={false}
styles={{
content: {
content: {
position: 'relative',
margin: isMobile ? '1rem' : '2rem'
},
@ -116,12 +116,12 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
header: { display: 'none' }
}}
>
<div style={{
position: 'relative',
height: modalHeight,
width: modalWidth,
maxWidth: modalMaxWidth,
maxHeight: modalMaxHeight,
<div style={{
position: 'relative',
height: modalHeight,
width: modalWidth,
maxWidth: modalMaxWidth,
maxHeight: modalMaxHeight,
minWidth: modalMinWidth,
margin: '0 auto',
overflow: 'hidden'
@ -130,11 +130,11 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
onDrop={handleNewFileUpload}
onDragEnter={() => setIsDragging(true)}
onDragLeave={() => setIsDragging(false)}
accept="*/*"
accept={["*/*"] as any}
multiple={true}
activateOnClick={false}
style={{
height: '100%',
style={{
height: '100%',
width: '100%',
border: 'none',
borderRadius: '30px',
@ -158,11 +158,11 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
{isMobile ? <MobileLayout /> : <DesktopLayout />}
</FileManagerProvider>
</Dropzone>
<DragOverlay isVisible={isDragging} />
</div>
</Modal>
);
};
export default FileManager;
export default FileManager;

View File

@ -33,7 +33,7 @@ const LandingPage = () => {
{/* White PDF Page Background */}
<Dropzone
onDrop={handleFileDrop}
accept="*/*"
accept={["*/*"] as any}
multiple={true}
className="w-4/5 flex items-center justify-center h-[95vh]"
style={{