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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user