mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
Remove merge from here in file editor
This commit is contained in:
parent
7694837764
commit
3d0d479ad7
@ -2,8 +2,6 @@ import React, { useState } from 'react';
|
|||||||
import { Text, Checkbox, Tooltip, ActionIcon, Badge, Modal } from '@mantine/core';
|
import { Text, Checkbox, Tooltip, ActionIcon, Badge, Modal } from '@mantine/core';
|
||||||
import CloseIcon from '@mui/icons-material/Close';
|
import CloseIcon from '@mui/icons-material/Close';
|
||||||
import VisibilityIcon from '@mui/icons-material/Visibility';
|
import VisibilityIcon from '@mui/icons-material/Visibility';
|
||||||
import MergeIcon from '@mui/icons-material/Merge';
|
|
||||||
import SplitscreenIcon from '@mui/icons-material/Splitscreen';
|
|
||||||
import HistoryIcon from '@mui/icons-material/History';
|
import HistoryIcon from '@mui/icons-material/History';
|
||||||
import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
|
import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
|
||||||
import styles from './PageEditor.module.css';
|
import styles from './PageEditor.module.css';
|
||||||
@ -37,8 +35,6 @@ interface FileThumbnailProps {
|
|||||||
onToggleFile: (fileId: string) => void;
|
onToggleFile: (fileId: string) => void;
|
||||||
onDeleteFile: (fileId: string) => void;
|
onDeleteFile: (fileId: string) => void;
|
||||||
onViewFile: (fileId: string) => void;
|
onViewFile: (fileId: string) => void;
|
||||||
onMergeFromHere: (fileId: string) => void;
|
|
||||||
onSplitFile: (fileId: string) => void;
|
|
||||||
onSetStatus: (status: string) => void;
|
onSetStatus: (status: string) => void;
|
||||||
toolMode?: boolean;
|
toolMode?: boolean;
|
||||||
}
|
}
|
||||||
@ -62,8 +58,6 @@ const FileThumbnail = ({
|
|||||||
onToggleFile,
|
onToggleFile,
|
||||||
onDeleteFile,
|
onDeleteFile,
|
||||||
onViewFile,
|
onViewFile,
|
||||||
onMergeFromHere,
|
|
||||||
onSplitFile,
|
|
||||||
onSetStatus,
|
onSetStatus,
|
||||||
toolMode = false,
|
toolMode = false,
|
||||||
}: FileThumbnailProps) => {
|
}: FileThumbnailProps) => {
|
||||||
@ -261,35 +255,6 @@ const FileThumbnail = ({
|
|||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
<Tooltip label="Merge from here">
|
|
||||||
<ActionIcon
|
|
||||||
size="md"
|
|
||||||
variant="subtle"
|
|
||||||
c="white"
|
|
||||||
onClick={(e) => {
|
|
||||||
e.stopPropagation();
|
|
||||||
onMergeFromHere(file.id);
|
|
||||||
onSetStatus(`Starting merge from ${file.name}`);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<MergeIcon style={{ fontSize: 20 }} />
|
|
||||||
</ActionIcon>
|
|
||||||
</Tooltip>
|
|
||||||
|
|
||||||
<Tooltip label="Split File">
|
|
||||||
<ActionIcon
|
|
||||||
size="md"
|
|
||||||
variant="subtle"
|
|
||||||
c="white"
|
|
||||||
onClick={(e) => {
|
|
||||||
e.stopPropagation();
|
|
||||||
onSplitFile(file.id);
|
|
||||||
onSetStatus(`Opening ${file.name} in page editor`);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<SplitscreenIcon style={{ fontSize: 20 }} />
|
|
||||||
</ActionIcon>
|
|
||||||
</Tooltip>
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user