fix: use design system CodeBlock for error stack trace

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-27 19:45:54 +01:00
parent bfd76261ef
commit cf9e847f84

View File

@@ -1,3 +1,4 @@
import { CodeBlock } from '@cameleer/design-system';
import type { ProcessorNode, ExecutionDetail } from '../types';
import styles from '../ExecutionDiagram.module.css';
@@ -37,7 +38,7 @@ export function ErrorTab({ processor, executionDetail }: ErrorTabProps) {
{errorStackTrace && (
<>
<div className={styles.errorStackLabel}>Stack Trace</div>
<pre className={styles.errorStackTrace}>{errorStackTrace}</pre>
<CodeBlock content={errorStackTrace} copyable />
</>
)}
</div>