Skip to content

Commit

Permalink
set autoReset default prop to true on ContextMenuItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslav committed Nov 4, 2022
1 parent f2973f8 commit 92eff72
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/CommunicationsLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const CommunicationsLink = props => (
successIcon={Expensicons.Checkmark}
successText={props.translate('reportActionContextMenu.copied')}
isMini
autoReset
onPress={() => Clipboard.setString(props.value)}
/>
</View>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContextMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const defaultProps = {
isMini: false,
successIcon: null,
successText: '',
autoReset: false,
autoReset: true,
description: '',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class BaseReportActionContextMenu extends React.Component {
selection: this.props.selection,
})}
description={contextAction.getDescription(this.props.selection, this.props.isSmallScreenWidth)}
autoReset={contextAction.autoReset}
/>
))}
</View>
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export default [
}
},
getDescription: () => {},
autoReset: false,
},

{
Expand Down

0 comments on commit 92eff72

Please sign in to comment.