Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/components/ReportActionItem/MoneyRequestAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ const propTypes = {
email: PropTypes.string,
}),

/** Styles to be assigned to Container */
// eslint-disable-next-line react/forbid-prop-types
style: PropTypes.arrayOf(PropTypes.object),

...withLocalizePropTypes,
};

Expand All @@ -82,6 +86,7 @@ const defaultProps = {
session: {
email: null,
},
style: [],
};

const MoneyRequestAction = (props) => {
Expand Down Expand Up @@ -145,7 +150,7 @@ const MoneyRequestAction = (props) => {
checkIfContextMenuActive={props.checkIfContextMenuActive}
shouldShowPendingConversionMessage={shouldShowPendingConversionMessage}
onPreviewPressed={onIOUPreviewPressed}
containerStyles={[styles.cursorPointer, props.isHovered ? styles.iouPreviewBoxHover : undefined]}
containerStyles={[styles.cursorPointer, props.isHovered ? styles.iouPreviewBoxHover : undefined, ...props.style]}
isHovered={props.isHovered}
/>
</>
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class ReportActionItem extends Component {
isHovered={hovered}
contextMenuAnchor={this.popoverAnchor}
checkIfContextMenuActive={this.checkIfContextMenuActive}
style={this.props.displayAsGroup ? [] : [styles.mt2]}
/>
);
} else if (this.props.action.actionName === CONST.REPORT.ACTIONS.TYPE.REPORTPREVIEW) {
Expand Down
1 change: 0 additions & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,6 @@ const styles = {
backgroundColor: themeColors.cardBG,
borderRadius: variables.componentBorderRadiusCard,
padding: 20,
marginTop: 16,
maxWidth: variables.sideBarWidth,
width: '100%',
},
Expand Down