Skip to content

Commit

Permalink
fix copy in account settings -> share code
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Jan 2, 2024
1 parent cb8ffe7 commit 112619c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/ContextMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const propTypes = {

/** Forwarded ref to ContextMenuItem */
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),

/** Should limit width. */
shouldLimitWidth: PropTypes.bool,
};

const defaultProps = {
Expand All @@ -49,9 +52,10 @@ const defaultProps = {
isAnonymousAction: false,
isFocused: false,
innerRef: null,
shouldLimitWidth: true,
};

function ContextMenuItem({onPress, successIcon, successText, icon, text, isMini, description, isAnonymousAction, isFocused, innerRef}) {
function ContextMenuItem({onPress, successIcon, successText, icon, text, isMini, description, isAnonymousAction, isFocused, innerRef, shouldLimitWidth}) {
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const {windowWidth} = useWindowDimensions();
Expand Down Expand Up @@ -98,7 +102,7 @@ function ContextMenuItem({onPress, successIcon, successText, icon, text, isMini,
success={!isThrottledButtonActive}
description={description}
descriptionTextStyle={styles.breakWord}
style={StyleUtils.getContextMenuItemStyles(windowWidth)}
style={shouldLimitWidth && StyleUtils.getContextMenuItemStyles(windowWidth)}
isAnonymousAction={isAnonymousAction}
focused={isFocused}
interactive={isThrottledButtonActive}
Expand Down
1 change: 1 addition & 0 deletions src/pages/ShareCodePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class ShareCodePage extends React.Component {
successIcon={Expensicons.Checkmark}
successText={this.props.translate('qrCodes.copied')}
onPress={() => Clipboard.setString(url)}
shouldLimitWidth={false}
/>

{isNative && (
Expand Down

0 comments on commit 112619c

Please sign in to comment.