@momo-kits/template 0.81.9 → 0.81.10

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.
@@ -4,6 +4,7 @@ import {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
+
7
8
  const NativeTrustBanner = requireNativeComponent<ViewProps>('TrustBannerView');
8
9
 
9
10
  const defaultIcons = [
@@ -13,7 +14,7 @@ const defaultIcons = [
13
14
  'https://static.momocdn.net/app/img/kits/trustBanner/ic_bidv.png',
14
15
  ];
15
16
  const TrustBanner: FC<TrustBannerProps> = ({
16
- message = 'Bảo mật thông tin & An toàn tài sản của bạn là ưu tiên hàng đầu của MoMo.',
17
+ content = 'Bảo mật thông tin & An toàn tài sản của bạn là ưu tiên hàng đầu của MoMo.',
17
18
  pciImage = 'https://static.momocdn.net/app/img/kits/trustBanner/pci.png',
18
19
  sslImage = 'https://static.momocdn.net/app/img/kits/trustBanner/ssl.png',
19
20
  icons = defaultIcons,
@@ -21,6 +22,9 @@ const TrustBanner: FC<TrustBannerProps> = ({
21
22
  }) => {
22
23
  const {theme} = useContext(ApplicationContext);
23
24
 
25
+ /**
26
+ * update platform_config
27
+ */
24
28
  const renderIconList = () => {
25
29
  return (
26
30
  <View style={styles.iconList}>
@@ -76,7 +80,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
76
80
  />
77
81
  <View style={styles.flex}>
78
82
  <Text style={styles.message} typography={'description_s'}>
79
- {message}
83
+ {content}
80
84
  </Text>
81
85
  {renderFooter()}
82
86
  </View>
@@ -1,7 +1,7 @@
1
1
  import {ViewStyle} from 'react-native';
2
2
 
3
3
  export type TrustBannerProps = {
4
- message?: string;
4
+ content?: string;
5
5
  icons?: string[];
6
6
  pciImage?: string;
7
7
  sslImage?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/template",
3
- "version": "0.81.9",
3
+ "version": "0.81.10",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "dependencies": {},