Skip to content

Commit

Permalink
update attachment menu
Browse files Browse the repository at this point in the history
  • Loading branch information
vsimakhin committed Jan 17, 2025
1 parent 92e36a0 commit 05a24d5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/ui/src/components/Attachment/Attachment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import { useState } from 'react';
import Box from '@mui/material/Box';
import IconButton from '@mui/material/IconButton';
import Menu from '@mui/material/Menu';
import MenuItem from '@mui/material/MenuItem';
// MUI Icons
import AttachFileOutlinedIcon from '@mui/icons-material/AttachFileOutlined';
import VisibilityOutlinedIcon from '@mui/icons-material/VisibilityOutlined';
// Custom
import { DownloadAttachmentButton } from './DownloadAttachmentButton';
import DeleteAttachmentButton from './DeleteAttachmentButton';
Expand All @@ -30,7 +28,6 @@ export const Attachment = ({ attachment }) => {
anchorOrigin={{ vertical: "bottom", horizontal: "left" }}
transformOrigin={{ vertical: "top", horizontal: "left" }}
>
<MenuItem onClick={() => console.log("preview")} sx={{ p: 0 }}><VisibilityOutlinedIcon sx={{ m: 1 }} color="action" />Preview</MenuItem>
<DownloadAttachmentButton attachment={attachment} handleClose={handleClose} />
<DeleteAttachmentButton attachment={attachment} handleClose={handleClose} />
</Menu>
Expand Down

0 comments on commit 05a24d5

Please sign in to comment.