chore(markdown): optimize title style
This commit is contained in:
parent
66fb140db1
commit
51b562b7bd
2 changed files with 6 additions and 4 deletions
|
@ -13,8 +13,10 @@ const Markdown: FC<MarkdownProps> = ({ children = '', className }) => {
|
|||
return (
|
||||
<ReactMarkdown
|
||||
components={{
|
||||
h1: ({ className, ...props }) => <h1 className={cn('mb-2 mt-0 text-2xl', className)} {...props} />,
|
||||
h2: ({ className, ...props }) => <h2 className={cn('mb-2 mt-0', className)} {...props} />,
|
||||
h1: ({ className, ...props }) => (
|
||||
<h1 className={cn('mb-2 mt-0 font-semibold text-2xl', className)} {...props} />
|
||||
),
|
||||
h2: ({ className, ...props }) => <h2 className={cn('mb-2 mt-0 font-semibold', className)} {...props} />,
|
||||
img: ({ className, alt, ...props }) => (
|
||||
<img className={cn('my-2 max-w-[50%]', className)} alt={alt} {...props} />
|
||||
),
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue