Skip to content

Commit

Permalink
Merge pull request #32353 from waterim/feat-32282-move-button
Browse files Browse the repository at this point in the history
Feat: Change buttons position
  • Loading branch information
dangrous authored Dec 1, 2023
2 parents edd7c41 + 33f77be commit 54f3daa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/ShareCodePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,6 @@ class ShareCodePage extends React.Component {
onPress={() => Clipboard.setString(url)}
/>

<MenuItem
title={this.props.translate(`referralProgram.${CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SHARE_CODE}.buttonText1`)}
icon={Expensicons.Cash}
onPress={() => Navigation.navigate(ROUTES.REFERRAL_DETAILS_MODAL.getRoute(CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SHARE_CODE))}
/>

{isNative && (
<MenuItem
isAnonymousAction
Expand All @@ -123,6 +117,12 @@ class ShareCodePage extends React.Component {
onPress={() => this.qrCodeRef.current?.download()}
/>
)}

<MenuItem
title={this.props.translate(`referralProgram.${CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SHARE_CODE}.buttonText1`)}
icon={Expensicons.Cash}
onPress={() => Navigation.navigate(ROUTES.REFERRAL_DETAILS_MODAL.getRoute(CONST.REFERRAL_PROGRAM.CONTENT_TYPES.SHARE_CODE))}
/>
</View>
</ScrollView>
</ScreenWrapper>
Expand Down

0 comments on commit 54f3daa

Please sign in to comment.