@widergy/mobile-ui 1.32.4 → 1.32.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.32.5](https://github.com/widergy/mobile-ui/compare/v1.32.4...v1.32.5) (2024-12-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [UGC-1026] utproductitem independent discount and previous amount ([#392](https://github.com/widergy/mobile-ui/issues/392)) ([8a75f5b](https://github.com/widergy/mobile-ui/commit/8a75f5b23579ef75cc18faa34abc4eb9d94c34cf))
|
|
7
|
+
|
|
1
8
|
## [1.32.4](https://github.com/widergy/mobile-ui/compare/v1.32.3...v1.32.4) (2024-12-02)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -7,11 +7,13 @@ import UTLabel from '../../../UTLabel';
|
|
|
7
7
|
|
|
8
8
|
const Discount = ({ previousAmount, shouldUseGap, discount, themedStyles }) => (
|
|
9
9
|
<View style={[themedStyles.amountContainer, shouldUseGap ? themedStyles.gap : '']}>
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
{discount}
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
{discount && (
|
|
11
|
+
<View style={themedStyles.discountChip}>
|
|
12
|
+
<UTLabel colorTheme="negative" variant="xsmall" style={themedStyles.discount}>
|
|
13
|
+
{discount}
|
|
14
|
+
</UTLabel>
|
|
15
|
+
</View>
|
|
16
|
+
)}
|
|
15
17
|
{previousAmount && (
|
|
16
18
|
<UTLabel colorTheme="gray" style={themedStyles.previousAmount}>{`$ ${previousAmount}`}</UTLabel>
|
|
17
19
|
)}
|
|
@@ -17,13 +17,13 @@ export const leftSectionComponents = ({
|
|
|
17
17
|
Component: AdditionalInfo,
|
|
18
18
|
key: 'additionalInfo',
|
|
19
19
|
props: { additionalInfo, themedStyles },
|
|
20
|
-
show:
|
|
20
|
+
show: additionalInfo
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
Component: Discount,
|
|
24
24
|
key: 'discount',
|
|
25
25
|
props: { discount, previousAmount, themedStyles },
|
|
26
|
-
show:
|
|
26
|
+
show: discount || previousAmount
|
|
27
27
|
},
|
|
28
28
|
{ Component: Amount, key: 'amount', props: { amount, themedStyles }, show: !!amount }
|
|
29
29
|
].filter(elem => elem.show);
|
package/package.json
CHANGED