From 44029128fa81f3561efa2025809db756bb2d8055 Mon Sep 17 00:00:00 2001 From: besemuna <51783214+besemuna@users.noreply.github.com> Date: Tue, 6 Apr 2021 13:02:07 +0000 Subject: [PATCH] fix(v2) : use safe/unsafe wording to denote swizzle safety (#4547) * fix : make swizzle items more accessible * feat : use safe/unsafe wording Co-authored-by: Lisa Chandra <52909743+lisa761@users.noreply.github.com> Co-authored-by: Javid --- packages/docusaurus/src/commands/swizzle.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/docusaurus/src/commands/swizzle.ts b/packages/docusaurus/src/commands/swizzle.ts index 7b2026388acc..52849f098adb 100644 --- a/packages/docusaurus/src/commands/swizzle.ts +++ b/packages/docusaurus/src/commands/swizzle.ts @@ -94,8 +94,8 @@ function themeComponents( return ` ${chalk.cyan('Theme components available for swizzle')} -${chalk.green('green =>')} recommended: lower breaking change risk -${chalk.red('red =>')} internal: higher breaking change risk +${chalk.green('green =>')} safe: lower breaking change risk +${chalk.red('red =>')} unsafe: higher breaking change risk ${components.join('\n')} `; @@ -123,8 +123,8 @@ function colorCode( ); return [ - ...greenComponents.map((component) => chalk.green(component)), - ...redComponents.map((component) => chalk.red(component)), + ...greenComponents.map((component) => chalk.green(`safe: ${component}`)), + ...redComponents.map((component) => chalk.red(`unsafe: ${component}`)), ]; }