From a5ad54af17eaac1b575458aa7cc283159d5f6fb9 Mon Sep 17 00:00:00 2001 From: Michal Muzyk Date: Tue, 4 Jun 2024 10:12:10 +0200 Subject: [PATCH] fix: whitespaces before comments --- .../workspace/workflows/ToggleSettingsOptionRow.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx b/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx index e1d54e0ba05e..76125659a6f3 100644 --- a/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx +++ b/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx @@ -12,30 +12,43 @@ import type IconAsset from '@src/types/utils/IconAsset'; type ToggleSettingOptionRowProps = { /** Icon to be shown for the option */ icon?: IconAsset; + /** Title of the option */ title?: string; + /** Custom title for the option */ customTitle?: React.ReactNode; + /** Subtitle of the option */ subtitle?: string; + /** Accessibility label for the switch */ switchAccessibilityLabel: string; + /** subtitle should show below switch and title */ shouldPlaceSubtitleBelowSwitch?: boolean; + /** Used to apply styles to the outermost container */ wrapperStyle?: StyleProp; + /** Whether the option is enabled or not */ isActive: boolean; + /** Callback to be called when the switch is toggled */ onToggle: (isEnabled: boolean) => void; + /** SubMenuItems will be shown when the option is enabled */ subMenuItems?: React.ReactNode; + /** If there is a pending action, we will grey out the option */ pendingAction?: PendingAction; + /** Any error message to show */ errors?: Errors; + /** Callback to close the error messages */ onCloseError?: () => void; + /** Whether the toggle should be disabled */ disabled?: boolean;