From 1212f3811fad4aa305c13875d40d94f249aff195 Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Thu, 3 Aug 2023 04:38:36 +0800 Subject: [PATCH] chore: message list use markdown --- src/components/MessageItem.tsx | 3 ++- src/views/Footer/index.tsx | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/MessageItem.tsx b/src/components/MessageItem.tsx index b4f4bc8..53edb4d 100644 --- a/src/components/MessageItem.tsx +++ b/src/components/MessageItem.tsx @@ -5,6 +5,7 @@ import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/Avatar' import LikeButton from '@/components/LikeButton' import { type Message } from '@/domain/MessageList' +import { Markdown } from '@/components/ui/Markdown' export interface MessageItemProps { data: Message @@ -39,7 +40,7 @@ const MessageItem: FC = ({ data }) => {
-
{formatData.body}
+ {formatData.body}
{ const send = useRemeshSend() @@ -36,7 +37,13 @@ const Footer: FC = () => { return (
- +