mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
remove preview for now
This commit is contained in:
parent
d29b203bed
commit
bc350e145f
@ -2,8 +2,6 @@ import React, { useState, useCallback, useRef, useEffect } from 'react';
|
|||||||
import { Text, Checkbox, Tooltip, ActionIcon, Badge } from '@mantine/core';
|
import { Text, Checkbox, Tooltip, ActionIcon, Badge } from '@mantine/core';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import CloseIcon from '@mui/icons-material/Close';
|
import CloseIcon from '@mui/icons-material/Close';
|
||||||
import VisibilityIcon from '@mui/icons-material/Visibility';
|
|
||||||
import PreviewIcon from '@mui/icons-material/Preview';
|
|
||||||
import PushPinIcon from '@mui/icons-material/PushPin';
|
import PushPinIcon from '@mui/icons-material/PushPin';
|
||||||
import PushPinOutlinedIcon from '@mui/icons-material/PushPinOutlined';
|
import PushPinOutlinedIcon from '@mui/icons-material/PushPinOutlined';
|
||||||
import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
|
import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
|
||||||
@ -289,40 +287,6 @@ const FileThumbnail = ({
|
|||||||
whiteSpace: 'nowrap'
|
whiteSpace: 'nowrap'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{!toolMode && isSupported && (
|
|
||||||
<>
|
|
||||||
<Tooltip label="View File">
|
|
||||||
<ActionIcon
|
|
||||||
size="md"
|
|
||||||
variant="subtle"
|
|
||||||
c="white"
|
|
||||||
onClick={(e) => {
|
|
||||||
e.stopPropagation();
|
|
||||||
onViewFile(file.id);
|
|
||||||
onSetStatus(`Opened ${file.name}`);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<VisibilityIcon style={{ fontSize: 20 }} />
|
|
||||||
</ActionIcon>
|
|
||||||
</Tooltip>
|
|
||||||
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Tooltip label="Preview File">
|
|
||||||
<ActionIcon
|
|
||||||
size="md"
|
|
||||||
variant="subtle"
|
|
||||||
c="white"
|
|
||||||
onClick={(e) => {
|
|
||||||
e.stopPropagation();
|
|
||||||
onViewFile(file.id);
|
|
||||||
onSetStatus(`Opening preview for ${file.name}`);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<PreviewIcon style={{ fontSize: 20 }} />
|
|
||||||
</ActionIcon>
|
|
||||||
</Tooltip>
|
|
||||||
|
|
||||||
{actualFile && (
|
{actualFile && (
|
||||||
<Tooltip label={isFilePinned(actualFile) ? "Unpin File" : "Pin File"}>
|
<Tooltip label={isFilePinned(actualFile) ? "Unpin File" : "Pin File"}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user