Skip to content

Commit

Permalink
Merge pull request #18524 from Expensify/paulogasparsv-strike-through…
Browse files Browse the repository at this point in the history
…-deleted-paypal-mobile

Fix strike-through when offline and deleting Paypal for native Android/iOS
  • Loading branch information
neil-marcellini authored May 9, 2023
2 parents e2b7236 + 11c8196 commit b730027
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/MenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const defaultProps = {
};

const MenuItem = (props) => {
const isDeleted = _.contains(props.style, styles.offlineFeedback.deleted);
const descriptionVerticalMargin = props.shouldShowDescriptionOnTop ? styles.mb1 : styles.mt1;
const titleTextStyle = StyleUtils.combineStyles([
styles.popoverMenuText,
(props.icon ? styles.ml3 : undefined),
Expand All @@ -69,15 +71,15 @@ const MenuItem = (props) => {
styles.pre,
styles.ltr,
(props.shouldShowHeaderTitle ? styles.textHeadlineH1 : undefined),
(_.contains(props.style, styles.offlineFeedback.deleted) ? styles.offlineFeedback.deleted : undefined),
isDeleted ? styles.offlineFeedback.deleted : undefined,
], props.titleStyle);
const descriptionVerticalMargin = props.shouldShowDescriptionOnTop ? styles.mb1 : styles.mt1;
const descriptionTextStyle = StyleUtils.combineStyles([
styles.textLabelSupporting,
(props.icon ? styles.ml3 : undefined),
styles.lineHeightNormal,
props.title ? descriptionVerticalMargin : undefined,
props.descriptionTextStyle,
isDeleted ? styles.offlineFeedback.deleted : undefined,
]);

const fallbackAvatarSize = props.viewMode === CONST.OPTION_MODE.COMPACT ? CONST.AVATAR_SIZE.SMALL : CONST.AVATAR_SIZE.DEFAULT;
Expand Down

0 comments on commit b730027

Please sign in to comment.