From 7d2370d56d3dfe4bee4c80a9fdda03c0c60eec23 Mon Sep 17 00:00:00 2001 From: Benjamin Cabanes <3447705+bcabanes@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:51:45 -0400 Subject: [PATCH] docs(nxdev): display callout on hidden schemas (#12796) --- .../src/lib/content.tsx | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/nx-dev/feature-package-schema-viewer/src/lib/content.tsx b/nx-dev/feature-package-schema-viewer/src/lib/content.tsx index 33513c94a6a67..68d6e81167372 100644 --- a/nx-dev/feature-package-schema-viewer/src/lib/content.tsx +++ b/nx-dev/feature-package-schema-viewer/src/lib/content.tsx @@ -144,28 +144,31 @@ export function Content({ - {/* We remove the top description on sub property lookup */} - {!schemaViewModel.subReference && ( - <> -
-
-
-
-
-
- Schema for internal use only -
-

- Please do not extend this schema as it is part of Nx internal - usage. -

+ {!schemaViewModel.subReference && schemaViewModel.hidden && ( +
+
+
+
+
+
+ Schema for internal use only
+

+ Please do not extend this schema as it is part of Nx internal + usage. +

+
+ )} + + {/* We remove the top description on sub property lookup */} + {!schemaViewModel.subReference && ( + <>
{vm.markdown}