Skip to content

Commit

Permalink
Adjust style
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo committed Apr 19, 2024
1 parent 0be199d commit 45875f9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const PoolTransitionModal = ({
<Row>
<Text style={styles.label}>{strings.fee}</Text>

<Text style={styles.currentValue}>{Number(poolTransition.current.taxRatio) * 100} %</Text>
<Text style={styles.currentValue}>{formatFee(poolTransition.current.taxRatio)} %</Text>
</Row>

<Text style={styles.warning}>
Expand Down Expand Up @@ -116,7 +116,7 @@ export const PoolTransitionModal = ({
<Row>
<Text style={styles.label}>{strings.fee}</Text>

<Text style={styles.suggestedValue}>{Number(poolTransition.suggested.taxRatio) * 100} %</Text>
<Text style={styles.suggestedValue}>{formatFee(poolTransition.suggested.taxRatio)} %</Text>
</Row>

<Text style={styles.currentValue}>{strings.poolGeneratesRewards}</Text>
Expand Down Expand Up @@ -237,3 +237,5 @@ const Row = (props: ViewProps) => {
const {styles} = useStyles()
return <View {...props} style={styles.row} />
}

const formatFee = (fee: string) => Number((Number(fee) * 100).toFixed(2))
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export const PoolTransitionNotice = () => {
<View style={styles.notice}>
<Row>
<Icon.Warning size={20} color={color.magenta[500]} />

<Text style={[styles.text, styles.bold]}>{strings.title}</Text>
</Row>

<Text style={styles.text}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"start": {
"line": 102,
"column": 9,
"index": 3409
"index": 3432
},
"end": {
"line": 105,
"column": 3,
"index": 3507
"index": 3530
}
},
{
Expand All @@ -21,12 +21,12 @@
"start": {
"line": 106,
"column": 11,
"index": 3520
"index": 3543
},
"end": {
"line": 110,
"column": 3,
"index": 3716
"index": 3739
}
},
{
Expand All @@ -36,12 +36,12 @@
"start": {
"line": 111,
"column": 16,
"index": 3734
"index": 3757
},
"end": {
"line": 115,
"column": 3,
"index": 3940
"index": 3963
}
},
{
Expand All @@ -51,12 +51,12 @@
"start": {
"line": 116,
"column": 15,
"index": 3957
"index": 3980
},
"end": {
"line": 119,
"column": 3,
"index": 4050
"index": 4073
}
},
{
Expand All @@ -66,12 +66,12 @@
"start": {
"line": 120,
"column": 11,
"index": 4063
"index": 4086
},
"end": {
"line": 123,
"column": 3,
"index": 4148
"index": 4171
}
},
{
Expand All @@ -81,12 +81,12 @@
"start": {
"line": 124,
"column": 16,
"index": 4166
"index": 4189
},
"end": {
"line": 127,
"column": 3,
"index": 4261
"index": 4284
}
},
{
Expand All @@ -96,12 +96,12 @@
"start": {
"line": 128,
"column": 7,
"index": 4270
"index": 4293
},
"end": {
"line": 131,
"column": 3,
"index": 4346
"index": 4369
}
},
{
Expand All @@ -111,12 +111,12 @@
"start": {
"line": 132,
"column": 24,
"index": 4372
"index": 4395
},
"end": {
"line": 135,
"column": 3,
"index": 4509
"index": 4532
}
},
{
Expand All @@ -126,12 +126,12 @@
"start": {
"line": 136,
"column": 17,
"index": 4528
"index": 4551
},
"end": {
"line": 139,
"column": 3,
"index": 4662
"index": 4685
}
},
{
Expand All @@ -141,12 +141,12 @@
"start": {
"line": 140,
"column": 23,
"index": 4687
"index": 4710
},
"end": {
"line": 143,
"column": 3,
"index": 4817
"index": 4840
}
},
{
Expand All @@ -156,12 +156,12 @@
"start": {
"line": 144,
"column": 17,
"index": 4836
"index": 4859
},
"end": {
"line": 147,
"column": 3,
"index": 4950
"index": 4973
}
},
{
Expand All @@ -171,12 +171,12 @@
"start": {
"line": 148,
"column": 21,
"index": 4973
"index": 4996
},
"end": {
"line": 151,
"column": 3,
"index": 5087
"index": 5110
}
},
{
Expand All @@ -186,12 +186,12 @@
"start": {
"line": 152,
"column": 10,
"index": 5099
"index": 5122
},
"end": {
"line": 155,
"column": 3,
"index": 5186
"index": 5209
}
}
]

0 comments on commit 45875f9

Please sign in to comment.