mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
typescript fix for mime types
This commit is contained in:
parent
9a1c8958f3
commit
72afa6a1e5
@ -108,7 +108,7 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
|
|||||||
className="overflow-hidden p-0"
|
className="overflow-hidden p-0"
|
||||||
withCloseButton={false}
|
withCloseButton={false}
|
||||||
styles={{
|
styles={{
|
||||||
content: {
|
content: {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
margin: isMobile ? '1rem' : '2rem'
|
margin: isMobile ? '1rem' : '2rem'
|
||||||
},
|
},
|
||||||
@ -116,12 +116,12 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
|
|||||||
header: { display: 'none' }
|
header: { display: 'none' }
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div style={{
|
<div style={{
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
height: modalHeight,
|
height: modalHeight,
|
||||||
width: modalWidth,
|
width: modalWidth,
|
||||||
maxWidth: modalMaxWidth,
|
maxWidth: modalMaxWidth,
|
||||||
maxHeight: modalMaxHeight,
|
maxHeight: modalMaxHeight,
|
||||||
minWidth: modalMinWidth,
|
minWidth: modalMinWidth,
|
||||||
margin: '0 auto',
|
margin: '0 auto',
|
||||||
overflow: 'hidden'
|
overflow: 'hidden'
|
||||||
@ -130,11 +130,11 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
|
|||||||
onDrop={handleNewFileUpload}
|
onDrop={handleNewFileUpload}
|
||||||
onDragEnter={() => setIsDragging(true)}
|
onDragEnter={() => setIsDragging(true)}
|
||||||
onDragLeave={() => setIsDragging(false)}
|
onDragLeave={() => setIsDragging(false)}
|
||||||
accept="*/*"
|
accept={["*/*"] as any}
|
||||||
multiple={true}
|
multiple={true}
|
||||||
activateOnClick={false}
|
activateOnClick={false}
|
||||||
style={{
|
style={{
|
||||||
height: '100%',
|
height: '100%',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderRadius: '30px',
|
borderRadius: '30px',
|
||||||
@ -158,11 +158,11 @@ const FileManager: React.FC<FileManagerProps> = ({ selectedTool }) => {
|
|||||||
{isMobile ? <MobileLayout /> : <DesktopLayout />}
|
{isMobile ? <MobileLayout /> : <DesktopLayout />}
|
||||||
</FileManagerProvider>
|
</FileManagerProvider>
|
||||||
</Dropzone>
|
</Dropzone>
|
||||||
|
|
||||||
<DragOverlay isVisible={isDragging} />
|
<DragOverlay isVisible={isDragging} />
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default FileManager;
|
export default FileManager;
|
||||||
|
@ -33,7 +33,7 @@ const LandingPage = () => {
|
|||||||
{/* White PDF Page Background */}
|
{/* White PDF Page Background */}
|
||||||
<Dropzone
|
<Dropzone
|
||||||
onDrop={handleFileDrop}
|
onDrop={handleFileDrop}
|
||||||
accept="*/*"
|
accept={["*/*"] as any}
|
||||||
multiple={true}
|
multiple={true}
|
||||||
className="w-4/5 flex items-center justify-center h-[95vh]"
|
className="w-4/5 flex items-center justify-center h-[95vh]"
|
||||||
style={{
|
style={{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user