mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Fix critical linting errors and React hooks violations
This commit is contained in:
1 parent
f48acfa06b
commit
c1aa8ba101
4 files changed
+12
-12
No files matched your search
@@ -27,7 +27,7 @@ function CodeBlock({ children, className, ...props }: CodeBlockProps) {
|
||||
if (typeof node === 'number') return node.toString()
|
||||
if (Array.isArray(node)) return node.map(extractTextContent).join('')
|
||||
if (React.isValidElement(node)) {
|
||||
const element = node as React.ReactElement<any, any>
|
||||
const element = node as React.ReactElement<Record<string, unknown>>
|
||||
if (element.props.children) {
|
||||
return extractTextContent(element.props.children as React.ReactNode)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user