From 7ae330b25f4f1eefc519cd3b22dd84d223e78375 Mon Sep 17 00:00:00 2001
From: Rahul <62512215+rahulnr7@users.noreply.github.com>
Date: Tue, 1 Oct 2024 20:01:14 +0530
Subject: [PATCH 1/2] fix(wallet-mobile): remove decimals from hidden values
(#3667)
---
.../Settings/PrivacyMode/PrivacyMode.tsx | 2 +-
.../src/legacy/Dashboard/UserSummary.tsx | 6 +-
.../messages/src/WalletNavigator.json | 96 +++++++++----------
.../src/legacy/Dashboard/UserSummary.json | 16 ++--
4 files changed, 60 insertions(+), 60 deletions(-)
diff --git a/apps/wallet-mobile/src/features/Settings/PrivacyMode/PrivacyMode.tsx b/apps/wallet-mobile/src/features/Settings/PrivacyMode/PrivacyMode.tsx
index 793876cc65..b2b95eb2a3 100644
--- a/apps/wallet-mobile/src/features/Settings/PrivacyMode/PrivacyMode.tsx
+++ b/apps/wallet-mobile/src/features/Settings/PrivacyMode/PrivacyMode.tsx
@@ -68,6 +68,6 @@ export const usePrivacyMode = () => {
isTogglePrivacyModeLoading,
setPrivacyModeOff: () => writePrivacyMode('HIDDEN'),
setPrivacyModeOn: () => writePrivacyMode('SHOWN'),
- privacyPlaceholder: '*.******',
+ privacyPlaceholder: '******',
}
}
diff --git a/apps/wallet-mobile/src/legacy/Dashboard/UserSummary.tsx b/apps/wallet-mobile/src/legacy/Dashboard/UserSummary.tsx
index 5dfb74f53f..9f1266b3cc 100644
--- a/apps/wallet-mobile/src/legacy/Dashboard/UserSummary.tsx
+++ b/apps/wallet-mobile/src/legacy/Dashboard/UserSummary.tsx
@@ -55,7 +55,7 @@ export const UserSummary = ({totalAdaSum, totalRewards, totalDelegated, onWithdr
? totalAdaSum != null
? formatAdaWithText(asQuantity(totalAdaSum), wallet.portfolioPrimaryTokenInfo)
: '-'
- : '**.******'}
+ : '******'}
@@ -82,7 +82,7 @@ export const UserSummary = ({totalAdaSum, totalRewards, totalDelegated, onWithdr
? totalRewards != null
? formatAdaWithText(asQuantity(totalRewards), wallet.portfolioPrimaryTokenInfo)
: '-'
- : '**.******'}
+ : '******'}
@@ -109,7 +109,7 @@ export const UserSummary = ({totalAdaSum, totalRewards, totalDelegated, onWithdr
? totalDelegated != null
? formatAdaWithText(asQuantity(totalDelegated), wallet.portfolioPrimaryTokenInfo)
: '-'
- : '**.******'}
+ : '******'}
diff --git a/apps/wallet-mobile/translations/messages/src/WalletNavigator.json b/apps/wallet-mobile/translations/messages/src/WalletNavigator.json
index 0618bc2879..b8cde09ac5 100644
--- a/apps/wallet-mobile/translations/messages/src/WalletNavigator.json
+++ b/apps/wallet-mobile/translations/messages/src/WalletNavigator.json
@@ -4,14 +4,14 @@
"defaultMessage": "!!!Transactions",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 301,
+ "line": 305,
"column": 22,
- "index": 10506
+ "index": 10584
},
"end": {
- "line": 304,
+ "line": 308,
"column": 3,
- "index": 10609
+ "index": 10687
}
},
{
@@ -19,14 +19,14 @@
"defaultMessage": "!!!Send",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 305,
+ "line": 309,
"column": 14,
- "index": 10625
+ "index": 10703
},
"end": {
- "line": 308,
+ "line": 312,
"column": 3,
- "index": 10724
+ "index": 10802
}
},
{
@@ -34,14 +34,14 @@
"defaultMessage": "!!!Receive",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 309,
+ "line": 313,
"column": 17,
- "index": 10743
+ "index": 10821
},
"end": {
- "line": 312,
+ "line": 316,
"column": 3,
- "index": 10848
+ "index": 10926
}
},
{
@@ -49,14 +49,14 @@
"defaultMessage": "!!!Dashboard",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 313,
+ "line": 317,
"column": 19,
- "index": 10869
+ "index": 10947
},
"end": {
- "line": 316,
+ "line": 320,
"column": 3,
- "index": 10966
+ "index": 11044
}
},
{
@@ -64,14 +64,14 @@
"defaultMessage": "!!!Delegate",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 317,
+ "line": 321,
"column": 18,
- "index": 10986
+ "index": 11064
},
"end": {
- "line": 320,
+ "line": 324,
"column": 3,
- "index": 11081
+ "index": 11159
}
},
{
@@ -79,14 +79,14 @@
"defaultMessage": "!!!Wallet",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 321,
+ "line": 325,
"column": 16,
- "index": 11099
+ "index": 11177
},
"end": {
- "line": 324,
+ "line": 328,
"column": 3,
- "index": 11197
+ "index": 11275
}
},
{
@@ -94,14 +94,14 @@
"defaultMessage": "!!!Staking",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 325,
+ "line": 329,
"column": 17,
- "index": 11216
+ "index": 11294
},
"end": {
- "line": 328,
+ "line": 332,
"column": 3,
- "index": 11281
+ "index": 11359
}
},
{
@@ -109,14 +109,14 @@
"defaultMessage": "!!!NFT Gallery",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 329,
+ "line": 333,
"column": 14,
- "index": 11297
+ "index": 11375
},
"end": {
- "line": 332,
+ "line": 336,
"column": 3,
- "index": 11391
+ "index": 11469
}
},
{
@@ -124,14 +124,14 @@
"defaultMessage": "!!!Menu",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 333,
+ "line": 337,
"column": 14,
- "index": 11407
+ "index": 11485
},
"end": {
- "line": 336,
+ "line": 340,
"column": 3,
- "index": 11459
+ "index": 11537
}
},
{
@@ -139,14 +139,14 @@
"defaultMessage": "!!!Discover",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 337,
+ "line": 341,
"column": 18,
- "index": 11479
+ "index": 11557
},
"end": {
- "line": 340,
+ "line": 344,
"column": 3,
- "index": 11568
+ "index": 11646
}
},
{
@@ -154,14 +154,14 @@
"defaultMessage": "!!!My wallets",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 341,
+ "line": 345,
"column": 31,
- "index": 11601
+ "index": 11679
},
"end": {
- "line": 344,
+ "line": 348,
"column": 3,
- "index": 11710
+ "index": 11788
}
},
{
@@ -169,14 +169,14 @@
"defaultMessage": "!!!Portfolio",
"file": "src/WalletNavigator.tsx",
"start": {
- "line": 345,
+ "line": 349,
"column": 19,
- "index": 11731
+ "index": 11809
},
"end": {
- "line": 348,
+ "line": 352,
"column": 3,
- "index": 11800
+ "index": 11878
}
}
]
\ No newline at end of file
diff --git a/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json b/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json
index f275f60b6c..e6b7b547c6 100644
--- a/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json
+++ b/apps/wallet-mobile/translations/messages/src/legacy/Dashboard/UserSummary.json
@@ -6,12 +6,12 @@
"start": {
"line": 180,
"column": 9,
- "index": 5288
+ "index": 5279
},
"end": {
"line": 183,
"column": 3,
- "index": 5390
+ "index": 5381
}
},
{
@@ -21,12 +21,12 @@
"start": {
"line": 184,
"column": 16,
- "index": 5408
+ "index": 5399
},
"end": {
"line": 187,
"column": 3,
- "index": 5518
+ "index": 5509
}
},
{
@@ -36,12 +36,12 @@
"start": {
"line": 188,
"column": 18,
- "index": 5538
+ "index": 5529
},
"end": {
"line": 191,
"column": 3,
- "index": 5652
+ "index": 5643
}
},
{
@@ -51,12 +51,12 @@
"start": {
"line": 192,
"column": 23,
- "index": 5677
+ "index": 5668
},
"end": {
"line": 195,
"column": 3,
- "index": 5789
+ "index": 5780
}
}
]
\ No newline at end of file
From 83f40658bb965686b00e9e6f26e1832eb19ce75b Mon Sep 17 00:00:00 2001
From: Rahul <62512215+rahulnr7@users.noreply.github.com>
Date: Wed, 2 Oct 2024 15:28:25 +0530
Subject: [PATCH 2/2] fix(wallet-mobile): add placeholder for "remove wallet"
input (#3668)
---
.../RemoveWallet/RemoveWalletScreen.tsx | 1 +
.../RemoveWallet/RemoveWalletScreen.json | 56 +++++++++----------
2 files changed, 29 insertions(+), 28 deletions(-)
diff --git a/apps/wallet-mobile/src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx b/apps/wallet-mobile/src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx
index 3b1ab1eb9e..401298ff96 100644
--- a/apps/wallet-mobile/src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx
+++ b/apps/wallet-mobile/src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx
@@ -59,6 +59,7 @@ export const RemoveWalletScreen = () => {
: undefined}
diff --git a/apps/wallet-mobile/translations/messages/src/features/Settings/RemoveWallet/RemoveWalletScreen.json b/apps/wallet-mobile/translations/messages/src/features/Settings/RemoveWallet/RemoveWalletScreen.json
index c26e2b407c..1e1e6629f2 100644
--- a/apps/wallet-mobile/translations/messages/src/features/Settings/RemoveWallet/RemoveWalletScreen.json
+++ b/apps/wallet-mobile/translations/messages/src/features/Settings/RemoveWallet/RemoveWalletScreen.json
@@ -4,14 +4,14 @@
"defaultMessage": "!!!If you wish to permanently delete the wallet make sure you have written down the mnemonic.",
"file": "src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx",
"start": {
- "line": 109,
+ "line": 110,
"column": 25,
- "index": 3918
+ "index": 3965
},
"end": {
- "line": 112,
+ "line": 113,
"column": 3,
- "index": 4112
+ "index": 4159
}
},
{
@@ -19,14 +19,14 @@
"defaultMessage": "!!!To confirm this operation type the wallet name below.",
"file": "src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx",
"start": {
- "line": 113,
+ "line": 114,
"column": 25,
- "index": 4139
+ "index": 4186
},
"end": {
- "line": 116,
+ "line": 117,
"column": 3,
- "index": 4296
+ "index": 4343
}
},
{
@@ -34,14 +34,14 @@
"defaultMessage": "!!!Wallet name",
"file": "src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx",
"start": {
- "line": 117,
+ "line": 118,
"column": 14,
- "index": 4312
+ "index": 4359
},
"end": {
- "line": 120,
+ "line": 121,
"column": 3,
- "index": 4416
+ "index": 4463
}
},
{
@@ -49,14 +49,14 @@
"defaultMessage": "!!!Wallet name",
"file": "src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx",
"start": {
- "line": 121,
+ "line": 122,
"column": 19,
- "index": 4437
+ "index": 4484
},
"end": {
- "line": 124,
+ "line": 125,
"column": 3,
- "index": 4546
+ "index": 4593
}
},
{
@@ -64,14 +64,14 @@
"defaultMessage": "!!!Wallet name does not match",
"file": "src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx",
"start": {
- "line": 125,
+ "line": 126,
"column": 27,
- "index": 4575
+ "index": 4622
},
"end": {
- "line": 128,
+ "line": 129,
"column": 3,
- "index": 4707
+ "index": 4754
}
},
{
@@ -79,14 +79,14 @@
"defaultMessage": "!!!Remove wallet",
"file": "src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx",
"start": {
- "line": 129,
+ "line": 130,
"column": 10,
- "index": 4719
+ "index": 4766
},
"end": {
- "line": 132,
+ "line": 133,
"column": 3,
- "index": 4821
+ "index": 4868
}
},
{
@@ -94,14 +94,14 @@
"defaultMessage": "!!!I have written down mnemonic of this wallet and understand that I cannot recover the wallet without it.",
"file": "src/features/Settings/RemoveWallet/RemoveWalletScreen.tsx",
"start": {
- "line": 133,
+ "line": 134,
"column": 26,
- "index": 4849
+ "index": 4896
},
"end": {
- "line": 137,
+ "line": 138,
"column": 3,
- "index": 5063
+ "index": 5110
}
}
]
\ No newline at end of file