From 45875f99b69cf4418a698041849263976aafddae Mon Sep 17 00:00:00 2001 From: jorbuedo Date: Fri, 19 Apr 2024 13:34:01 +0200 Subject: [PATCH] Adjust style --- .../PoolTransition/PoolTransitionModal.tsx | 6 ++- .../PoolTransition/PoolTransitionNotice.tsx | 2 - .../PoolTransition/usePoolTransition.json | 52 +++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx b/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx index b818a32cb4..f38525c718 100644 --- a/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx +++ b/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionModal.tsx @@ -63,7 +63,7 @@ export const PoolTransitionModal = ({ {strings.fee} - {Number(poolTransition.current.taxRatio) * 100} % + {formatFee(poolTransition.current.taxRatio)} % @@ -116,7 +116,7 @@ export const PoolTransitionModal = ({ {strings.fee} - {Number(poolTransition.suggested.taxRatio) * 100} % + {formatFee(poolTransition.suggested.taxRatio)} % {strings.poolGeneratesRewards} @@ -237,3 +237,5 @@ const Row = (props: ViewProps) => { const {styles} = useStyles() return } + +const formatFee = (fee: string) => Number((Number(fee) * 100).toFixed(2)) diff --git a/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionNotice.tsx b/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionNotice.tsx index 518b49d580..5044eeb734 100644 --- a/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionNotice.tsx +++ b/apps/wallet-mobile/src/Staking/PoolTransition/PoolTransitionNotice.tsx @@ -20,8 +20,6 @@ export const PoolTransitionNotice = () => { - - {strings.title} diff --git a/apps/wallet-mobile/translations/messages/src/Staking/PoolTransition/usePoolTransition.json b/apps/wallet-mobile/translations/messages/src/Staking/PoolTransition/usePoolTransition.json index 3b95cb94e9..f3da422597 100644 --- a/apps/wallet-mobile/translations/messages/src/Staking/PoolTransition/usePoolTransition.json +++ b/apps/wallet-mobile/translations/messages/src/Staking/PoolTransition/usePoolTransition.json @@ -6,12 +6,12 @@ "start": { "line": 102, "column": 9, - "index": 3409 + "index": 3432 }, "end": { "line": 105, "column": 3, - "index": 3507 + "index": 3530 } }, { @@ -21,12 +21,12 @@ "start": { "line": 106, "column": 11, - "index": 3520 + "index": 3543 }, "end": { "line": 110, "column": 3, - "index": 3716 + "index": 3739 } }, { @@ -36,12 +36,12 @@ "start": { "line": 111, "column": 16, - "index": 3734 + "index": 3757 }, "end": { "line": 115, "column": 3, - "index": 3940 + "index": 3963 } }, { @@ -51,12 +51,12 @@ "start": { "line": 116, "column": 15, - "index": 3957 + "index": 3980 }, "end": { "line": 119, "column": 3, - "index": 4050 + "index": 4073 } }, { @@ -66,12 +66,12 @@ "start": { "line": 120, "column": 11, - "index": 4063 + "index": 4086 }, "end": { "line": 123, "column": 3, - "index": 4148 + "index": 4171 } }, { @@ -81,12 +81,12 @@ "start": { "line": 124, "column": 16, - "index": 4166 + "index": 4189 }, "end": { "line": 127, "column": 3, - "index": 4261 + "index": 4284 } }, { @@ -96,12 +96,12 @@ "start": { "line": 128, "column": 7, - "index": 4270 + "index": 4293 }, "end": { "line": 131, "column": 3, - "index": 4346 + "index": 4369 } }, { @@ -111,12 +111,12 @@ "start": { "line": 132, "column": 24, - "index": 4372 + "index": 4395 }, "end": { "line": 135, "column": 3, - "index": 4509 + "index": 4532 } }, { @@ -126,12 +126,12 @@ "start": { "line": 136, "column": 17, - "index": 4528 + "index": 4551 }, "end": { "line": 139, "column": 3, - "index": 4662 + "index": 4685 } }, { @@ -141,12 +141,12 @@ "start": { "line": 140, "column": 23, - "index": 4687 + "index": 4710 }, "end": { "line": 143, "column": 3, - "index": 4817 + "index": 4840 } }, { @@ -156,12 +156,12 @@ "start": { "line": 144, "column": 17, - "index": 4836 + "index": 4859 }, "end": { "line": 147, "column": 3, - "index": 4950 + "index": 4973 } }, { @@ -171,12 +171,12 @@ "start": { "line": 148, "column": 21, - "index": 4973 + "index": 4996 }, "end": { "line": 151, "column": 3, - "index": 5087 + "index": 5110 } }, { @@ -186,12 +186,12 @@ "start": { "line": 152, "column": 10, - "index": 5099 + "index": 5122 }, "end": { "line": 155, "column": 3, - "index": 5186 + "index": 5209 } } ] \ No newline at end of file