Skip to content

Commit

Permalink
fix(v2) : use safe/unsafe wording to denote swizzle safety (#4547)
Browse files Browse the repository at this point in the history
* 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 <singularity.javid@gmail.com>
  • Loading branch information
3 people authored Apr 6, 2021
1 parent b6fbca7 commit 4402912
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/docusaurus/src/commands/swizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
`;
Expand Down Expand Up @@ -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}`)),
];
}

Expand Down

0 comments on commit 4402912

Please sign in to comment.