Skip to content

Commit

Permalink
fix(HW-646): Setup missing translaction keys
Browse files Browse the repository at this point in the history
  • Loading branch information
devkudasov committed Aug 28, 2024
1 parent b88aa32 commit a1b5586
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,22 +172,22 @@ export const TransactionConfirmation = observer(
</Text>
<Spacer style={styles.spacer}>
<View style={styles.info}>
<DataView label="Cryptocurrency">
<DataView i18n={I18N.transactionInfoCryptocurrency}>
<Text variant={TextVariant.t11} color={Color.textBase1}>
{token.name}
</Text>
</DataView>
<DataView label="Network">
<DataView i18n={I18N.transactionNetwork}>
<Text variant={TextVariant.t11} color={Color.textBase1}>
<Text>{app.provider.name}</Text>
</Text>
</DataView>
<DataView label="Amount">
<DataView i18n={I18N.transactionDetailAmount}>
<Text variant={TextVariant.t11} color={Color.textBase1}>
{amount.toBalanceString(LONG_NUM_PRECISION)}
</Text>
</DataView>
<DataView label="Network Fee">
<DataView i18n={I18N.transactionInfoNetworkFee}>
{!fee?.calculatedFees ? (
<Text variant={TextVariant.t11} color={Color.textBase1}>
{getText(I18N.estimatingGas)}
Expand Down
5 changes: 4 additions & 1 deletion src/components/transaction-nft-confirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ export const TransactionNftConfirmation = observer(
)}
{fee?.expectedFee && (
<View style={styles.info}>
<DataView label={soulboundTokenHint || 'Network Fee'}>
<DataView
label={
soulboundTokenHint || getText(I18N.transactionInfoNetworkFee)
}>
{!fee.calculatedFees ? (
<Text variant={TextVariant.t11} color={Color.textBase1}>
{getText(I18N.estimatingGas)}
Expand Down
13 changes: 6 additions & 7 deletions src/screens/HomeStack/AddressStack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ import React, {memo} from 'react';
import {createNativeStackNavigator} from '@react-navigation/native-stack';

import {popupScreenOptionsWithMargin} from '@app/helpers';
import {I18N, getText} from '@app/i18n';
import {AddressBookParamList, AddressBookStackRoutes} from '@app/route-types';
import {basicScreenOptions} from '@app/screens';
import {SettingsAddressBookScreen} from '@app/screens/HomeStack/AddressStack/settings-address-book';
import {SettingsContactEditScreen} from '@app/screens/HomeStack/AddressStack/settings-contact-edit';

const screenOptions = {
...popupScreenOptionsWithMargin,
title: 'Address book',
headerShown: true,
};

const Stack = createNativeStackNavigator<AddressBookParamList>();

const AddressBookStack = memo(() => {
Expand All @@ -24,7 +19,11 @@ const AddressBookStack = memo(() => {
<Stack.Screen
name={AddressBookStackRoutes.SettingsAddressBook}
component={SettingsAddressBookScreen}
options={screenOptions}
options={{
...popupScreenOptionsWithMargin,
title: getText(I18N.homeSettingsAddressBook),
headerShown: true,
}}
/>
<Stack.Screen
name={AddressBookStackRoutes.SettingsContactEdit}
Expand Down
3 changes: 2 additions & 1 deletion src/screens/HomeStack/ManageAccountsStack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, {memo} from 'react';
import {createNativeStackNavigator} from '@react-navigation/native-stack';

import {popupScreenOptionsWithMargin} from '@app/helpers';
import {I18N, getText} from '@app/i18n';
import {
ManageAccountsStackParamList,
ManageAccountsStackRoutes,
Expand All @@ -26,7 +27,7 @@ const ManageAccountsStack = memo(() => {
component={SettingsAccountsScreen}
options={{
...popupScreenOptionsWithMargin,
title: 'Manage accounts',
title: getText(I18N.homeSettingsAccounts),
headerShown: true,
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/screens/HomeStack/SettingsStack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SettingsStack = memo(() => {
component={HomeSettingsScreen}
options={{
...popupScreenOptionsWithMargin,
title: 'Settings',
title: getText(I18N.homeSettings),
headerShown: true,
headerLeft: () => null,
}}
Expand Down

0 comments on commit a1b5586

Please sign in to comment.