Skip to content

Commit

Permalink
add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lakchote committed Feb 23, 2024
1 parent be01e31 commit b4dab19
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ import useThemeStyles from '@hooks/useThemeStyles';
import type {PendingAction} from '@src/types/onyx/OnyxCommon';

type ToggleSettingOptionRowProps = {
/** Icon to be shown for the option */
icon: React.FC<SvgProps>;
/** Title of the option */
title: string;
/** Subtitle of the option */
subtitle: string;
/** 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;
};
const ICON_SIZE = 48;
Expand Down

0 comments on commit b4dab19

Please sign in to comment.