@momo-kits/template 0.169.8 → 0.169.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.
@@ -12,6 +12,9 @@ import {
12
12
  Text,
13
13
  } from '@momo-kits/foundation';
14
14
 
15
+ const ARROW_ICON_SIZE = 20;
16
+ const PRESSED_OPACITY = 0.7;
17
+
15
18
  const defaultData = {
16
19
  content: {
17
20
  vi: 'An toàn tài sản & Bảo mật thông tin của bạn là ưu tiên hàng đầu của MoMo.',
@@ -85,7 +88,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
85
88
  );
86
89
  }, [navigator?.maxApi, trackingParams]);
87
90
 
88
- const _onPress = () => {
91
+ const handlePress = () => {
89
92
  navigator?.maxApi.trackEvent?.('service_component_clicked', {
90
93
  ...trackingParams,
91
94
  urlConfig,
@@ -111,7 +114,7 @@ const TrustBanner: FC<TrustBannerProps> = ({
111
114
  <Icon
112
115
  source={'arrow_chevron_right_small'}
113
116
  color={Colors.pink_03}
114
- size={20}
117
+ size={ARROW_ICON_SIZE}
115
118
  />
116
119
  </View>
117
120
  <View style={styles.imageList}>
@@ -132,8 +135,8 @@ const TrustBanner: FC<TrustBannerProps> = ({
132
135
 
133
136
  return (
134
137
  <TouchableOpacity
135
- onPress={_onPress}
136
- activeOpacity={0.7}
138
+ onPress={handlePress}
139
+ activeOpacity={PRESSED_OPACITY}
137
140
  style={[style, styles.container]}
138
141
  >
139
142
  <Image
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/template",
3
- "version": "0.169.8",
3
+ "version": "0.169.10",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {