Skip to content

Commit

Permalink
fix(mobile): Battery fixes second revision (#790)
Browse files Browse the repository at this point in the history
* fix(mobile): Battery fixes second revision

* fix battery size
  • Loading branch information
voloshinskii authored Apr 11, 2024
1 parent f95612a commit a35a916
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 3 additions & 1 deletion packages/mobile/src/wallet/Tonkeeper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ export class Tonkeeper {
const walletsInstances = await Promise.all(
sortedWallets.map((wallet) => this.createWalletInstance(wallet)),
);
walletsInstances.map((instance) => instance.tonProof.obtainProof(keyPair));
walletsInstances.map((instance) =>
instance.tonProof.obtainProof(keyPair).then(() => instance.battery.load()),
);

await this.setWallet(walletsInstances[0]);

Expand Down
4 changes: 0 additions & 4 deletions packages/shared/components/RefillBattery/RefillBatteryIAP.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export const RefillBatteryIAP = memo(() => {
name={item.icon}
/>
}
titleContainerStyle={styles.titleContainer.static}
title={
<View>
<View style={styles.priceContainer}>
Expand Down Expand Up @@ -176,9 +175,6 @@ const styles = Steezy.create({
flex: 1,
justifyContent: 'center',
},
titleContainer: {
flex: 2,
},
priceContainer: {
flexDirection: 'row',
alignItems: 'center',
Expand Down
8 changes: 4 additions & 4 deletions packages/shared/i18n/locales/tonkeeper/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@
"description": {
"empty": "Swap, send tokens and NFTs.",
"other": {
"few": "Your battery has %{count} charges",
"many": "Your battery has %{count} charges",
"one": "Your battery has %{count} charge",
"other": "Your battery has %{count} charges"
"few": "%{count} charges",
"many": "%{count} charges",
"one": "%{count} charge",
"other": "%{count} charges"
}
},
"promocode": {
Expand Down
8 changes: 4 additions & 4 deletions packages/shared/i18n/locales/tonkeeper/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -1092,10 +1092,10 @@
"description": {
"empty": "Обменивайте и отправляйте токены.",
"other": {
"few": "В вашей батарейке %{count} заряда",
"many": "В вашей батарейке %{count} зарядов",
"one": "В вашей батарейке %{count} заряд",
"other": "В вашей батарейке %{count} зарядов"
"few": "%{count} заряда",
"many": "%{count} зарядов",
"one": "%{count} заряд",
"other": "%{count} зарядов"
}
},
"promocode": {
Expand Down

0 comments on commit a35a916

Please sign in to comment.