From 26b976a82876cd10ad19162e411c6b4642ad6142 Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Fri, 16 Aug 2024 14:11:47 +0800 Subject: [PATCH] refactor(console): refactor tag component (#6453) --- .../ApplicationCreation/CreateForm/index.tsx | 1 + .../src/components/FeatureTag/AddOnTag.tsx | 19 --------- .../src/components/FeatureTag/index.tsx | 40 ++++++++++++++----- .../src/ds-components/CardTitle/index.tsx | 7 ++-- .../src/ds-components/ModalLayout/index.tsx | 5 ++- .../components/CreateForm/index.tsx | 3 +- .../EnterpriseSso/SsoCreationModal/index.tsx | 2 +- .../console/src/pages/EnterpriseSso/index.tsx | 11 ++--- .../src/pages/Mfa/PageWrapper/index.tsx | 8 +--- .../src/pages/OrganizationTemplate/index.tsx | 12 +----- .../CreateOrganizationModal/index.tsx | 3 +- .../console/src/pages/Organizations/index.tsx | 13 ++---- .../TenantMembers/InviteMemberModal/index.tsx | 3 +- 13 files changed, 56 insertions(+), 71 deletions(-) delete mode 100644 packages/console/src/components/FeatureTag/AddOnTag.tsx diff --git a/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx b/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx index b3fcb6178..830939f71 100644 --- a/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx +++ b/packages/console/src/components/ApplicationCreation/CreateForm/index.tsx @@ -128,6 +128,7 @@ function CreateForm({ planId === ReservedPlanId.Pro && ReservedPlanId.Pro )} + hasAddOnTag={isDevFeaturesEnabled && watch('type') === ApplicationType.MachineToMachine} size={defaultCreateType ? 'medium' : 'large'} footer={