@momo-kits/foundation 0.81.43-beta.8 → 0.81.43-beta.9
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/Application/Components.tsx +11 -13
- package/Badge/Badge.tsx +1 -1
- package/Badge/styles.ts +0 -1
- package/package.json +1 -1
|
@@ -95,7 +95,7 @@ const styles = StyleSheet.create({
|
|
|
95
95
|
badge: {
|
|
96
96
|
position: 'absolute',
|
|
97
97
|
top: -8,
|
|
98
|
-
right: -
|
|
98
|
+
right: -6,
|
|
99
99
|
},
|
|
100
100
|
});
|
|
101
101
|
|
|
@@ -127,19 +127,17 @@ const NavigationButton: React.FC<NavigationButtonProps> = ({
|
|
|
127
127
|
}, [badgeType, badgeValue]);
|
|
128
128
|
|
|
129
129
|
return (
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
/>
|
|
140
|
-
</TouchableOpacity>
|
|
130
|
+
<TouchableOpacity
|
|
131
|
+
accessibilityLabel={`NavigationButton/${accessibilityLabel}`}
|
|
132
|
+
style={[styles.navigationButton, buttonStyle]}
|
|
133
|
+
onPress={onPress}>
|
|
134
|
+
<Icon
|
|
135
|
+
source={icon}
|
|
136
|
+
color={tintColor ?? theme.colors.text.default}
|
|
137
|
+
size={20}
|
|
138
|
+
/>
|
|
141
139
|
{renderBadge()}
|
|
142
|
-
</
|
|
140
|
+
</TouchableOpacity>
|
|
143
141
|
);
|
|
144
142
|
};
|
|
145
143
|
|
package/Badge/Badge.tsx
CHANGED
|
@@ -47,7 +47,7 @@ const Badge: FC<BadgeProps> = ({label = 'Label', style, backgroundColor}) => {
|
|
|
47
47
|
return (
|
|
48
48
|
<View style={[style, styles.badge, {backgroundColor: badgeColor}]}>
|
|
49
49
|
<Text color={Colors.black_01} typography={'action_xxs'}>
|
|
50
|
-
{formatTitle()}
|
|
50
|
+
{formatTitle()}đ
|
|
51
51
|
</Text>
|
|
52
52
|
</View>
|
|
53
53
|
);
|
package/Badge/styles.ts
CHANGED