From 51b562b7bdd0eac9d102331df860bce3f42b055c Mon Sep 17 00:00:00 2001 From: molvqingtai Date: Sun, 15 Oct 2023 05:14:36 +0800 Subject: [PATCH] chore(markdown): optimize title style --- src/components/ui/Markdown.tsx | 6 ++++-- src/views/Footer/index.tsx | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/ui/Markdown.tsx b/src/components/ui/Markdown.tsx index 3236bd3..aef959a 100644 --- a/src/components/ui/Markdown.tsx +++ b/src/components/ui/Markdown.tsx @@ -13,8 +13,10 @@ const Markdown: FC = ({ children = '', className }) => { return (

, - h2: ({ className, ...props }) =>

, + h1: ({ className, ...props }) => ( +

+ ), + h2: ({ className, ...props }) =>

, img: ({ className, alt, ...props }) => ( {alt} ), diff --git a/src/views/Footer/index.tsx b/src/views/Footer/index.tsx index b4098ce..e8db80a 100644 --- a/src/views/Footer/index.tsx +++ b/src/views/Footer/index.tsx @@ -34,8 +34,8 @@ const Footer: FC = () => { send(messageInputDomain.command.ClearCommand()) } - const handleEmojiSelect = (value: string) => { - send(messageInputDomain.command.InputCommand(messageText + value)) + const handleEmojiSelect = (emoji: string) => { + send(messageInputDomain.command.InputCommand(`${messageText}${emoji}`)) } return (