Skip to content

Commit

Permalink
Merge pull request #910 from drudge/canary
Browse files Browse the repository at this point in the history
feat(cluster): use code editor for node config
  • Loading branch information
Siumauricio authored Dec 18, 2024
2 parents f1b4a73 + 75e3428 commit 20d5913
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CodeEditor } from "@/components/shared/code-editor";
import {
Dialog,
DialogContent,
Expand Down Expand Up @@ -33,7 +34,13 @@ export const ShowNodeData = ({ data }: Props) => {
<div className="text-wrap rounded-lg border p-4 text-sm sm:max-w-[59rem] bg-card">
<code>
<pre className="whitespace-pre-wrap break-words">
{JSON.stringify(data, null, 2)}
<CodeEditor
language="json"
lineWrapping
lineNumbers={false}
readOnly
value={JSON.stringify(data, null, 2)}
/>
</pre>
</code>
</div>
Expand Down

0 comments on commit 20d5913

Please sign in to comment.