Skip to content

Commit

Permalink
fix: show info on deleted message (#3154)
Browse files Browse the repository at this point in the history
* fix: show info on deleted message

* fix: use icon color

* fix: imports
  • Loading branch information
rt-web3 authored Mar 9, 2023
1 parent d4d9cf5 commit 97e89fb
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/chat-sdk/src/components/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import DoneIcon from "@mui/icons-material/Done";
import DoneAllIcon from "@mui/icons-material/DoneAll";
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
import VerifiedIcon from "@mui/icons-material/Verified";
import { Button, IconButton, Skeleton } from "@mui/material";
import { Button, IconButton, Skeleton, Tooltip } from "@mui/material";
import Info from "@mui/icons-material/Info";
import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem";
import { createStyles, makeStyles } from "@mui/styles";
Expand Down Expand Up @@ -1153,6 +1154,7 @@ function DeleteIconInternal({
);
}


function DeletedMessage() {
const theme = useCustomTheme();
return (
Expand All @@ -1164,9 +1166,19 @@ function DeletedMessage() {
display: "inline-flex",
padding: "2px 6px",
marginLeft: -6,
alignItems: "center",
}}
>
Message removed
<span>Message removed</span>
<Tooltip title="This was probably a spam">
<Info
style={{
fontSize: "1rem",
marginLeft: 4,
color: theme.custom.colors.icon,
}}
/>
</Tooltip>
</div>
);
}

1 comment on commit 97e89fb

@vercel
Copy link

@vercel vercel bot commented on 97e89fb Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.