Skip to content

Commit 8d35fac

Browse files
Prettier run
1 parent d918ab1 commit 8d35fac

1 file changed

Lines changed: 112 additions & 114 deletions

File tree

src/components/MenuItem.tsx

Lines changed: 112 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -395,120 +395,118 @@ const getSubscriptAvatarBackgroundColor = (isHovered: boolean, isPressed: boolea
395395
return hoveredBackgroundColor;
396396
}
397397
};
398-
function MenuItem(
399-
{
400-
interactive = true,
401-
onPress,
402-
badgeText,
403-
style,
404-
wrapperStyle,
405-
titleWrapperStyle,
406-
outerWrapperStyle,
407-
containerStyle,
408-
titleStyle,
409-
labelStyle,
410-
descriptionTextStyle,
411-
badgeStyle,
412-
viewMode = CONST.OPTION_MODE.DEFAULT,
413-
numberOfLinesTitle = 1,
414-
numberOfLinesDescription = 2,
415-
icon,
416-
iconFill,
417-
secondaryIcon,
418-
secondaryIconFill,
419-
iconType = CONST.ICON_TYPE_ICON,
420-
isSecondaryIconHoverable = false,
421-
iconWidth,
422-
iconHeight,
423-
iconStyles,
424-
fallbackIcon = Expensicons.FallbackAvatar,
425-
shouldShowTitleIcon = false,
426-
titleIcon,
427-
rightIconAccountID,
428-
iconAccountID,
429-
shouldShowRightIcon = false,
430-
iconRight = Expensicons.ArrowRight,
431-
furtherDetailsIcon,
432-
furtherDetails,
433-
furtherDetailsNumberOfLines = 2,
434-
furtherDetailsStyle,
435-
furtherDetailsComponent,
436-
description,
437-
helperText,
438-
helperTextStyle,
439-
errorText,
440-
errorTextStyle,
441-
shouldShowRedDotIndicator,
442-
hintText,
443-
success = false,
444-
iconReportID,
445-
focused = false,
446-
disabled = false,
447-
title,
448-
titleComponent,
449-
titleContainerStyle,
450-
subtitle,
451-
shouldShowBasicTitle,
452-
label,
453-
shouldTruncateTitle = false,
454-
characterLimit = 200,
455-
isLabelHoverable = true,
456-
rightLabel,
457-
shouldShowSelectedState = false,
458-
isSelected = false,
459-
shouldStackHorizontally = false,
460-
shouldShowDescriptionOnTop = false,
461-
shouldShowRightComponent = false,
462-
rightComponent,
463-
rightIconReportID,
464-
avatarSize = CONST.AVATAR_SIZE.DEFAULT,
465-
isSmallAvatarSubscriptMenu = false,
466-
brickRoadIndicator,
467-
shouldRenderAsHTML = false,
468-
shouldEscapeText = undefined,
469-
shouldGreyOutWhenDisabled = true,
470-
shouldRemoveBackground = false,
471-
shouldRemoveHoverBackground = false,
472-
shouldUseDefaultCursorWhenDisabled = false,
473-
shouldShowLoadingSpinnerIcon = false,
474-
isAnonymousAction = false,
475-
shouldBlockSelection = false,
476-
shouldParseTitle = false,
477-
shouldParseHelperText = false,
478-
shouldRenderHintAsHTML = false,
479-
shouldRenderErrorAsHTML = false,
480-
excludedMarkdownRules = [],
481-
shouldCheckActionAllowedOnPress = true,
482-
onSecondaryInteraction,
483-
titleWithTooltips,
484-
displayInDefaultIconColor = false,
485-
contentFit = 'cover',
486-
isPaneMenu = true,
487-
shouldPutLeftPaddingWhenNoIcon = false,
488-
onFocus,
489-
onBlur,
490-
avatarID,
491-
shouldRenderTooltip = false,
492-
shouldHideOnScroll = false,
493-
tooltipAnchorAlignment,
494-
tooltipWrapperStyle = {},
495-
tooltipShiftHorizontal = 0,
496-
tooltipShiftVertical = 0,
497-
renderTooltipContent,
498-
onEducationTooltipPress,
499-
additionalIconStyles,
500-
shouldShowSelectedItemCheck = false,
501-
shouldIconUseAutoWidthStyle = false,
502-
shouldBreakWord = false,
503-
pressableTestID,
504-
shouldTeleportPortalToModalLayer,
505-
plaidUrl,
506-
copyValue = title,
507-
copyable = false,
508-
hasSubMenuItems = false,
509-
ref,
510-
}: MenuItemProps,
511-
) {
398+
function MenuItem({
399+
interactive = true,
400+
onPress,
401+
badgeText,
402+
style,
403+
wrapperStyle,
404+
titleWrapperStyle,
405+
outerWrapperStyle,
406+
containerStyle,
407+
titleStyle,
408+
labelStyle,
409+
descriptionTextStyle,
410+
badgeStyle,
411+
viewMode = CONST.OPTION_MODE.DEFAULT,
412+
numberOfLinesTitle = 1,
413+
numberOfLinesDescription = 2,
414+
icon,
415+
iconFill,
416+
secondaryIcon,
417+
secondaryIconFill,
418+
iconType = CONST.ICON_TYPE_ICON,
419+
isSecondaryIconHoverable = false,
420+
iconWidth,
421+
iconHeight,
422+
iconStyles,
423+
fallbackIcon = Expensicons.FallbackAvatar,
424+
shouldShowTitleIcon = false,
425+
titleIcon,
426+
rightIconAccountID,
427+
iconAccountID,
428+
shouldShowRightIcon = false,
429+
iconRight = Expensicons.ArrowRight,
430+
furtherDetailsIcon,
431+
furtherDetails,
432+
furtherDetailsNumberOfLines = 2,
433+
furtherDetailsStyle,
434+
furtherDetailsComponent,
435+
description,
436+
helperText,
437+
helperTextStyle,
438+
errorText,
439+
errorTextStyle,
440+
shouldShowRedDotIndicator,
441+
hintText,
442+
success = false,
443+
iconReportID,
444+
focused = false,
445+
disabled = false,
446+
title,
447+
titleComponent,
448+
titleContainerStyle,
449+
subtitle,
450+
shouldShowBasicTitle,
451+
label,
452+
shouldTruncateTitle = false,
453+
characterLimit = 200,
454+
isLabelHoverable = true,
455+
rightLabel,
456+
shouldShowSelectedState = false,
457+
isSelected = false,
458+
shouldStackHorizontally = false,
459+
shouldShowDescriptionOnTop = false,
460+
shouldShowRightComponent = false,
461+
rightComponent,
462+
rightIconReportID,
463+
avatarSize = CONST.AVATAR_SIZE.DEFAULT,
464+
isSmallAvatarSubscriptMenu = false,
465+
brickRoadIndicator,
466+
shouldRenderAsHTML = false,
467+
shouldEscapeText = undefined,
468+
shouldGreyOutWhenDisabled = true,
469+
shouldRemoveBackground = false,
470+
shouldRemoveHoverBackground = false,
471+
shouldUseDefaultCursorWhenDisabled = false,
472+
shouldShowLoadingSpinnerIcon = false,
473+
isAnonymousAction = false,
474+
shouldBlockSelection = false,
475+
shouldParseTitle = false,
476+
shouldParseHelperText = false,
477+
shouldRenderHintAsHTML = false,
478+
shouldRenderErrorAsHTML = false,
479+
excludedMarkdownRules = [],
480+
shouldCheckActionAllowedOnPress = true,
481+
onSecondaryInteraction,
482+
titleWithTooltips,
483+
displayInDefaultIconColor = false,
484+
contentFit = 'cover',
485+
isPaneMenu = true,
486+
shouldPutLeftPaddingWhenNoIcon = false,
487+
onFocus,
488+
onBlur,
489+
avatarID,
490+
shouldRenderTooltip = false,
491+
shouldHideOnScroll = false,
492+
tooltipAnchorAlignment,
493+
tooltipWrapperStyle = {},
494+
tooltipShiftHorizontal = 0,
495+
tooltipShiftVertical = 0,
496+
renderTooltipContent,
497+
onEducationTooltipPress,
498+
additionalIconStyles,
499+
shouldShowSelectedItemCheck = false,
500+
shouldIconUseAutoWidthStyle = false,
501+
shouldBreakWord = false,
502+
pressableTestID,
503+
shouldTeleportPortalToModalLayer,
504+
plaidUrl,
505+
copyValue = title,
506+
copyable = false,
507+
hasSubMenuItems = false,
508+
ref,
509+
}: MenuItemProps) {
512510
const theme = useTheme();
513511
const styles = useThemeStyles();
514512
const StyleUtils = useStyleUtils();

0 commit comments

Comments
 (0)