From 28cb521fdd60be9db79dc67541637634ef70627e Mon Sep 17 00:00:00 2001 From: Abdelhafidh Belalia <16493223+s77rt@users.noreply.github.com> Date: Mon, 3 Jun 2024 18:43:26 +0100 Subject: [PATCH] Add bold style for switch labels in workflow and more features pages --- src/pages/workspace/WorkspaceMoreFeaturesPage.tsx | 1 + src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx | 7 +++++-- src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx index 699ba9a14564..ec5077aacd98 100644 --- a/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx +++ b/src/pages/workspace/WorkspaceMoreFeaturesPage.tsx @@ -201,6 +201,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro ; + /** Used to apply styles to the Title */ + titleStyle?: StyleProp; /** Whether the option is enabled or not */ isActive: boolean; /** Callback to be called when the switch is toggled */ @@ -49,6 +51,7 @@ function ToggleSettingOptionRow({ switchAccessibilityLabel, shouldPlaceSubtitleBelowSwitch, wrapperStyle, + titleStyle, onToggle, subMenuItems, isActive, @@ -85,7 +88,7 @@ function ToggleSettingOptionRow({ /> )} - {title} + {title} {!shouldPlaceSubtitleBelowSwitch && subtitle && subTitleView} diff --git a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx index 5b17a4e26051..aa779e6b9ea1 100644 --- a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx +++ b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx @@ -261,6 +261,7 @@ function WorkspaceWorkflowsPage({policy, betas, route}: WorkspaceWorkflowsPagePr