mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 14:59:27 +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 {
|
interface CodeViewerProps {
|
||||||
language: string
|
language: string
|
||||||
children: string
|
children: React.ReactNode
|
||||||
expanded?: boolean
|
expanded?: boolean
|
||||||
wrapped?: boolean
|
wrapped?: boolean
|
||||||
onHeightChange?: (scrollHeight: number) => void
|
onHeightChange?: (scrollHeight: number) => void
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user