@momo-kits/template 0.81.38 → 0.81.40

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.
@@ -10,7 +10,9 @@ const CustomAvatar: FC<CustomAvatarProps> = ({image, text, style}) => {
10
10
  const renderContent = () => {
11
11
  if (text) {
12
12
  return (
13
- <Text color={theme.colors.primary} typography={'description_xs'}>
13
+ <Text
14
+ color={theme.colors.primary}
15
+ typography={'description_xs_regular'}>
14
16
  {text}
15
17
  </Text>
16
18
  );
@@ -4,6 +4,7 @@ import {TrustBannerCallbackParams, TrustBannerProps} from './types';
4
4
  import styles from './styles';
5
5
  import {ApplicationContext, Colors, Image, Text} from '@momo-kits/foundation';
6
6
  import CustomAvatar from './CustomAvatar';
7
+ import MaxApi from '@momo-platform/api';
7
8
 
8
9
  const dataJsonUrl =
9
10
  'https://static.momocdn.net/app/json/component-kits/design_system.json';
@@ -33,7 +34,6 @@ const TrustBanner: FC<TrustBannerProps> = ({
33
34
  style,
34
35
  screenName = '',
35
36
  serviceName = '',
36
- onPress,
37
37
  trackEvent,
38
38
  }) => {
39
39
  const {theme, language} = useContext(ApplicationContext);
@@ -118,13 +118,13 @@ const TrustBanner: FC<TrustBannerProps> = ({
118
118
 
119
119
  const _onPress = () => {
120
120
  trackEvent?.('service_component_clicked', {...trackingParams, url_config});
121
- onPress?.({...trackingParams, url_config, feature_code});
121
+ MaxApi.startFeatureCode(feature_code, {}, () => {});
122
122
  };
123
123
 
124
124
  return (
125
125
  <TouchableOpacity
126
126
  onPress={_onPress}
127
- activeOpacity={onPress ? 0.7 : 1}
127
+ activeOpacity={0.7}
128
128
  style={[style, styles.container]}>
129
129
  <Image
130
130
  style={styles.momoImage}
@@ -137,7 +137,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
137
137
  <Text
138
138
  style={styles.message}
139
139
  color={theme.colors.text.secondary}
140
- typography={'description_s'}>
140
+ typography={'description_default_regular'}>
141
141
  {content?.[language || 'vi'] || defaultData.content.vi}
142
142
  </Text>
143
143
  {renderFooter()}
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
- "name": "@momo-kits/template",
3
- "version": "0.81.38",
4
- "private": false,
5
- "main": "index.tsx",
6
- "dependencies": {},
7
- "peerDependencies": {
8
- "@momo-kits/foundation": "*",
9
- "@momo-kits/carousel": "*",
10
- "prop-types": "^15.7.2",
11
- "react": "16.9.0",
12
- "react-native": ">=0.55"
13
- },
14
- "license": "MoMo"
15
- }
2
+ "name": "@momo-kits/template",
3
+ "version": "0.81.40",
4
+ "private": false,
5
+ "main": "index.tsx",
6
+ "dependencies": {},
7
+ "peerDependencies": {
8
+ "@momo-kits/foundation": "*",
9
+ "@momo-kits/carousel": "*",
10
+ "prop-types": "^15.7.2",
11
+ "react": "16.9.0",
12
+ "react-native": ">=0.55",
13
+ "@momo-platform/api": "0.1.67-rc.3"
14
+ },
15
+ "license": "MoMo"
16
+ }