Skip to content

Commit

Permalink
add spacing for selection screen prop
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed May 3, 2024
1 parent a011dc5 commit cf2cd2f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/SelectionScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,34 @@ type SelectorType = ListItem & {
type SelectionScreenProps = {
/** Used to set the testID for tests */
displayName: string;

/** Title of the selection component */
title: TranslationPaths;

/** Custom content to display in the header */
headerContent?: React.ReactNode;

/** Sections for the section list */
sections: Array<SectionListDataType<SelectorType>>;

/** Default renderer for every item in the list */
listItem: typeof RadioListItem | typeof UserListItem | typeof TableListItem;

/** Item `keyForList` to focus initially */
initiallyFocusedOptionKey?: string | null | undefined;

/** Callback to fire when a row is pressed */
onSelectRow: (selection: SelectorType) => void;

/** Callback to fire when back button is pressed */
onBackButtonPress: () => void;

/** The current policyID */
policyID: string;

/** Defines which types of access should be verified */
accessVariants?: PolicyAccessVariant[];

/** The current feature name that the user tries to get access to */
featureName?: PolicyFeatureName;
};
Expand Down

0 comments on commit cf2cd2f

Please sign in to comment.