From 23cd8a4c501808fd1fdfd8725966ec6d86030a2c Mon Sep 17 00:00:00 2001 From: Wade King Date: Thu, 23 Nov 2023 14:43:29 -0800 Subject: [PATCH] feat: changed order of mobile verifier buttons (#1032) Signed-off-by: wadeking98 --- .../legacy/core/App/localization/en/index.ts | 1 + .../legacy/core/App/localization/fr/index.ts | 1 + .../core/App/localization/pt-br/index.ts | 1 + .../legacy/core/App/screens/ProofDetails.tsx | 18 +++++++++--------- .../__tests__/screens/ProofDetails.test.tsx | 2 +- .../__snapshots__/ProofDetails.test.tsx.snap | 12 ++++++------ 6 files changed, 19 insertions(+), 16 deletions(-) diff --git a/packages/legacy/core/App/localization/en/index.ts b/packages/legacy/core/App/localization/en/index.ts index 0cd1267e0d..807cc95678 100644 --- a/packages/legacy/core/App/localization/en/index.ts +++ b/packages/legacy/core/App/localization/en/index.ts @@ -628,6 +628,7 @@ const translation = { "Parameterizable": "Parameterizable", "RefreshQR": "Refresh QR Code", "GenerateNewQR": "Request another proof", + "BackToList": "Back to list", "ShareLink": "Share link", "ScanQR": "Show this QR code to the other person", "ScanQRComment": "After the QR code is scanned, a proof request will be sent.", diff --git a/packages/legacy/core/App/localization/fr/index.ts b/packages/legacy/core/App/localization/fr/index.ts index 9b6d0351b6..02bd149e89 100644 --- a/packages/legacy/core/App/localization/fr/index.ts +++ b/packages/legacy/core/App/localization/fr/index.ts @@ -610,6 +610,7 @@ const translation = { "Parameterizable": "Paramétrable", "RefreshQR": "Refresh QR Code (FR)", "GenerateNewQR": "Request another proof (FR)", + "BackToList": "Back to list (FR)", "ShareLink": "Lien de partage", "ScanQR": "Show this QR code to the other person (FR)", "ScanQRComment": "After the QR code is scanned, a proof request will be sent. (FR)", diff --git a/packages/legacy/core/App/localization/pt-br/index.ts b/packages/legacy/core/App/localization/pt-br/index.ts index 7488ccbb29..bd76b94ce9 100644 --- a/packages/legacy/core/App/localization/pt-br/index.ts +++ b/packages/legacy/core/App/localization/pt-br/index.ts @@ -586,6 +586,7 @@ const translation = { "Parameterizable": "Parametrizável", "RefreshQR": "Atualizar QR Code", "GenerateNewQR": "Requisitar outra prova", + "BackToList": "Back to list (PB)", "ShareLink": "Compartilhar link", "ScanQR": "Mostrar este QR code para a outra pessoa", "ScanQRComment": "Depois do QR code ser scaneado, a requisição de prova será enviada.", diff --git a/packages/legacy/core/App/screens/ProofDetails.tsx b/packages/legacy/core/App/screens/ProofDetails.tsx index 50455e8f4e..f6bc0d02ae 100644 --- a/packages/legacy/core/App/screens/ProofDetails.tsx +++ b/packages/legacy/core/App/screens/ProofDetails.tsx @@ -122,7 +122,7 @@ const VerifiedProof: React.FC = ({ } }, [navigation]) - const onDone = useCallback(() => { + const onBack = useCallback(() => { navigation.navigate(Screens.ProofRequests, {}) }, [navigation]) @@ -178,19 +178,19 @@ const VerifiedProof: React.FC = ({