Skip to content

Commit

Permalink
Merge pull request #20889 from alitoshmatov/20457/copy-btn-checked
Browse files Browse the repository at this point in the history
Added 'Copied!' text to textChecked of buttons in 2FA
  • Loading branch information
Hayata Suenaga authored Jun 17, 2023
2 parents 83ab016 + 14b27b2 commit bee8fd3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export default {
per: 'per',
mi: 'mile',
km: 'kilometer',
copied: 'Copied!',
},
anonymousReportFooter: {
logoTagline: 'Join in on the discussion.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export default {
per: 'por',
mi: 'milla',
km: 'kilómetro',
copied: '¡Copiado!',
},
anonymousReportFooter: {
logoTagline: 'Únete a la discussion.',
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings/Security/TwoFactorAuth/CodesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function CodesPage(props) {
<View style={styles.twoFactorAuthCodesButtonsContainer}>
<PressableWithDelayToggle
text={props.translate('twoFactorAuth.copyCodes')}
textChecked={props.translate('common.copied')}
icon={Expensicons.Copy}
inline={false}
onPress={() => {
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings/Security/TwoFactorAuth/VerifyPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function VerifyPage(props) {
{Boolean(props.account.twoFactorAuthSecretKey) && <Text>{splitSecretInChunks(props.account.twoFactorAuthSecretKey)}</Text>}
<PressableWithDelayToggle
text={props.translate('twoFactorAuth.copy')}
textChecked={props.translate('common.copied')}
icon={Expensicons.Copy}
inline={false}
onPress={() => Clipboard.setString(props.account.twoFactorAuthSecretKey)}
Expand Down

0 comments on commit bee8fd3

Please sign in to comment.