From 20012ee4b56d35425d88f20bdeabcb82f7c14a01 Mon Sep 17 00:00:00 2001 From: Wade King Date: Mon, 23 Oct 2023 12:33:29 -0700 Subject: [PATCH] fix: warning when navigating to terms screen (#1558) Signed-off-by: wadeking98 --- app/src/localization/en/index.ts | 1 + app/src/localization/fr/index.ts | 1 + app/src/localization/pt-br/index.ts | 1 + app/src/screens/Terms.tsx | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/localization/en/index.ts b/app/src/localization/en/index.ts index f6d1918b4..c6075f1fd 100644 --- a/app/src/localization/en/index.ts +++ b/app/src/localization/en/index.ts @@ -55,6 +55,7 @@ const translation = { }, "Screens": { "Onboarding": "BC Wallet", + "Terms": "End User License Agreement", "Settings": "Menu", }, "PersonCredentialNotification": { diff --git a/app/src/localization/fr/index.ts b/app/src/localization/fr/index.ts index c56978f84..75cbbb4f4 100644 --- a/app/src/localization/fr/index.ts +++ b/app/src/localization/fr/index.ts @@ -55,6 +55,7 @@ const translation = { }, "Screens": { "Onboarding": "BC Wallet (FR)", + "Terms": "End User License Agreement", "Settings": "Menu (FR)", }, "PersonCredentialNotification": { diff --git a/app/src/localization/pt-br/index.ts b/app/src/localization/pt-br/index.ts index 1a949006f..982b5462a 100644 --- a/app/src/localization/pt-br/index.ts +++ b/app/src/localization/pt-br/index.ts @@ -55,6 +55,7 @@ const translation = { }, "Screens": { "Onboarding": "BC Wallet (PT-BR)", + "Terms": "End User License Agreement (PT-BR)", "Settings": "Menu (PT-BR)", }, "PersonCredentialNotification": { diff --git a/app/src/screens/Terms.tsx b/app/src/screens/Terms.tsx index 9f108e2e2..126d35377 100644 --- a/app/src/screens/Terms.tsx +++ b/app/src/screens/Terms.tsx @@ -28,7 +28,6 @@ const Terms: React.FC = () => { const [checked, setChecked] = useState(false) const { t } = useTranslation() const navigation = useNavigation>() - navigation.setOptions({ title: 'End User License Agreement' }) const { ColorPallet, TextTheme } = useTheme() const style = StyleSheet.create({ container: {