From 0739bbb51e128afa8dc2cf44223d773557d1d625 Mon Sep 17 00:00:00 2001 From: Benjamin Cabanes <3447705+bcabanes@users.noreply.github.com> Date: Fri, 28 Apr 2023 15:06:38 -0400 Subject: [PATCH] feat(nx-dev): change code-fences and code-output styles (#16649) --- .../ui-markdoc/src/lib/nodes/fence.component.tsx | 14 +++++++------- ...put.component.tsx => code-output.component.tsx} | 9 +++++---- .../lib/nodes/fences/terminal-output.component.tsx | 9 +++++---- 3 files changed, 17 insertions(+), 15 deletions(-) rename nx-dev/ui-markdoc/src/lib/nodes/fences/{codeOutput.component.tsx => code-output.component.tsx} (79%) diff --git a/nx-dev/ui-markdoc/src/lib/nodes/fence.component.tsx b/nx-dev/ui-markdoc/src/lib/nodes/fence.component.tsx index 28da29e2b2745..c8303501cf2d6 100644 --- a/nx-dev/ui-markdoc/src/lib/nodes/fence.component.tsx +++ b/nx-dev/ui-markdoc/src/lib/nodes/fence.component.tsx @@ -1,14 +1,14 @@ import { - CheckCircleIcon, ClipboardDocumentCheckIcon, ClipboardDocumentIcon, + InformationCircleIcon, } from '@heroicons/react/24/outline'; import React, { ReactNode, useEffect, useState } from 'react'; // @ts-ignore import { CopyToClipboard } from 'react-copy-to-clipboard'; // @ts-ignore import SyntaxHighlighter from 'react-syntax-highlighter'; -import { CodeOutput } from './fences/codeOutput.component'; +import { CodeOutput } from './fences/code-output.component'; import { TerminalOutput } from './fences/terminal-output.component'; function resolveLanguage(lang: string) { @@ -74,7 +74,7 @@ export function Fence({ children.includes('@nx/') || command.includes('@nx/'); return (
-
+