From 7ce014d0337f95b73285cb52ee0e723697cebf79 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Wed, 2 Aug 2023 20:51:25 +0800 Subject: [PATCH] chore(phrases): apply title-cased plan name for tenant plan selection button (#4276) --- packages/console/package.json | 1 + .../SelectTenantPlanModal/PlanCardItem/index.tsx | 4 +++- packages/console/src/components/PlanName/index.tsx | 13 +++++++------ pnpm-lock.yaml | 8 ++++++++ 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/packages/console/package.json b/packages/console/package.json index ba8a6e591..9c63a4cf5 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -114,6 +114,7 @@ "remark-gfm": "^3.0.1", "stylelint": "^15.0.0", "swr": "^2.2.0", + "titleize": "^3.0.0", "tslib": "^2.4.1", "typescript": "^5.0.0", "zod": "^3.20.2" diff --git a/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx b/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx index c00054337..07653fdde 100644 --- a/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx +++ b/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx @@ -109,7 +109,9 @@ function PlanCardItem({ plan, onSelect }: Props) {