@momo-kits/template 0.89.4 → 0.89.6
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, {FC} from 'react';
|
|
2
2
|
import {Animated, TouchableOpacity} from 'react-native';
|
|
3
|
-
import Carousel from '@momo-kits/carousel';
|
|
3
|
+
import {Carousel} from '@momo-kits/carousel';
|
|
4
4
|
import {Image, Pagination, Spacing} from '@momo-kits/foundation';
|
|
5
5
|
import {HeaderSliderBannerProps} from './types';
|
|
6
6
|
|
package/TrustBanner/index.tsx
CHANGED
|
@@ -29,6 +29,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
|
|
|
29
29
|
screenName = '',
|
|
30
30
|
serviceName = '',
|
|
31
31
|
trackEvent,
|
|
32
|
+
disabledPress = false
|
|
32
33
|
}) => {
|
|
33
34
|
const {theme, language} = useContext(ApplicationContext);
|
|
34
35
|
const [data, setData] = useState(defaultData);
|
|
@@ -117,6 +118,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
|
|
|
117
118
|
|
|
118
119
|
return (
|
|
119
120
|
<TouchableOpacity
|
|
121
|
+
disabled={disabledPress}
|
|
120
122
|
onPress={_onPress}
|
|
121
123
|
activeOpacity={0.7}
|
|
122
124
|
style={[style, styles.container]}>
|
|
@@ -131,7 +133,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
|
|
|
131
133
|
<Text
|
|
132
134
|
style={styles.message}
|
|
133
135
|
color={theme.colors.text.secondary}
|
|
134
|
-
typography={'
|
|
136
|
+
typography={'description_s'}>
|
|
135
137
|
{content?.[language || 'vi'] || defaultData.content.vi}
|
|
136
138
|
</Text>
|
|
137
139
|
{renderFooter()}
|
package/TrustBanner/types.ts
CHANGED