From 94781c89f39a1081e1872329283003d2137afaf2 Mon Sep 17 00:00:00 2001 From: Cao Mingjun Date: Sat, 25 Nov 2023 03:39:26 +0000 Subject: [PATCH] Preview local file before send --- web/src/components/AttachmentIcon.jsx | 24 +++++++++++++----------- web/src/components/PublishDialog.jsx | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/web/src/components/AttachmentIcon.jsx b/web/src/components/AttachmentIcon.jsx index 9a2581e9..b7bf6b50 100644 --- a/web/src/components/AttachmentIcon.jsx +++ b/web/src/components/AttachmentIcon.jsx @@ -1,5 +1,5 @@ import * as React from "react"; -import { Box } from "@mui/material"; +import { Box, Link } from "@mui/material"; import { useTranslation } from "react-i18next"; import fileDocument from "../img/file-document.svg"; import fileImage from "../img/file-image.svg"; @@ -32,16 +32,18 @@ const AttachmentIcon = (props) => { imageLabel = t("notifications_attachment_file_document"); } return ( - + + + ); }; diff --git a/web/src/components/PublishDialog.jsx b/web/src/components/PublishDialog.jsx index 3c431dd0..1b2fdd9f 100644 --- a/web/src/components/PublishDialog.jsx +++ b/web/src/components/PublishDialog.jsx @@ -798,7 +798,7 @@ const AttachmentBox = (props) => { borderRadius: "4px", }} > - +