From b7d157eae9dfb6ed78c1fb7d600a4b240a45e117 Mon Sep 17 00:00:00 2001 From: digipie Date: Sun, 6 Mar 2022 10:51:35 +0800 Subject: [PATCH 1/2] fix(core): fix swizzle legend typo --- packages/docusaurus/src/commands/swizzle/tables.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/docusaurus/src/commands/swizzle/tables.ts b/packages/docusaurus/src/commands/swizzle/tables.ts index 5816d76ba885..da15b70d5d14 100644 --- a/packages/docusaurus/src/commands/swizzle/tables.ts +++ b/packages/docusaurus/src/commands/swizzle/tables.ts @@ -56,7 +56,7 @@ Report it here: https://github.com/facebook/docusaurus/discussions/5468 [tableStatusLabel('forbidden')]: [ '', ` -This component should not meant to be swizzled. +This component is not meant to be swizzled. `, ], }); @@ -74,11 +74,11 @@ function actionsTable(): string { logger.code('--wrap'), ` Creates a wrapper around the original theme component. -Allows rendering other components before/after the original theme component. +Allows rendering of other components before/after the original theme component. ${logger.green('Tip')}: prefer ${logger.code( '--wrap', - )} whenever possible to reduces the amount of code to maintain. + )} whenever possible to reduce the amount of code to maintain. `, ], }); @@ -88,11 +88,11 @@ ${logger.green('Tip')}: prefer ${logger.code( logger.code('--eject'), ` Ejects the full source code of the original theme component. -Allows overriding the original component entirely with your own UI and logic. +Allows overriding of the original component entirely with your own UI and logic. ${logger.green('Tip')}: ${logger.code( '--eject', - )} can be useful to completely redesign a component. + )} can be useful for completely redesigning a component. `, ], }); From 7f84c1bf33dbdf2506906e1aa634c2e57e88b4ba Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sun, 6 Mar 2022 10:53:59 +0800 Subject: [PATCH 2/2] Update packages/docusaurus/src/commands/swizzle/tables.ts --- packages/docusaurus/src/commands/swizzle/tables.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/commands/swizzle/tables.ts b/packages/docusaurus/src/commands/swizzle/tables.ts index da15b70d5d14..26c95880fe79 100644 --- a/packages/docusaurus/src/commands/swizzle/tables.ts +++ b/packages/docusaurus/src/commands/swizzle/tables.ts @@ -74,7 +74,7 @@ function actionsTable(): string { logger.code('--wrap'), ` Creates a wrapper around the original theme component. -Allows rendering of other components before/after the original theme component. +Allows rendering other components before/after the original theme component. ${logger.green('Tip')}: prefer ${logger.code( '--wrap',