File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/client/components/aiGateway Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { Button } from '../ui/button';
1717import dayjs from 'dayjs' ;
1818import { Empty } from 'antd' ;
1919import { useEvent } from '@/hooks/useEvent' ;
20- import { Card , CardContent } from '../ui/card ' ;
20+ import { CodeBlock } from '../CodeBlock ' ;
2121import { AIGatewayStatus } from './AIGatewayStatus' ;
2222
2323interface AIGatewayLogTableProps {
@@ -65,15 +65,7 @@ export const AIGatewayLogTable: React.FC<AIGatewayLogTableProps> = React.memo(
6565
6666 const renderJsonData = ( data : any ) => {
6767 try {
68- return (
69- < Card >
70- < CardContent className = "p-2" >
71- < pre className = "max-h-80 overflow-auto whitespace-pre-wrap text-xs" >
72- { JSON . stringify ( data , null , 2 ) }
73- </ pre >
74- </ CardContent >
75- </ Card >
76- ) ;
68+ return < CodeBlock code = { JSON . stringify ( data , null , 2 ) } /> ;
7769 } catch ( err ) {
7870 return < div className = "text-red-500" > { String ( err ) } </ div > ;
7971 }
You can’t perform that action at this time.
0 commit comments