mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +08:00
refactor(CodeViewer): change children prop type to React.ReactNode
- Updated the children prop type in CodeViewer from string to React.ReactNode for improved flexibility in rendering various content types.
This commit is contained in:
parent
7f87fb9c26
commit
4b7b0a3823
@ -12,7 +12,7 @@ import styled from 'styled-components'
|
||||
|
||||
interface CodeViewerProps {
|
||||
language: string
|
||||
children: string
|
||||
children: React.ReactNode
|
||||
expanded?: boolean
|
||||
wrapped?: boolean
|
||||
onHeightChange?: (scrollHeight: number) => void
|
||||
|
||||
Loading…
Reference in New Issue
Block a user