ordering-ui-react-native 0.17.95 → 0.17.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.17.95",
3
+ "version": "0.17.96",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -68,7 +68,7 @@ export const ProductOptionSubOptionUI = (props: any) => {
68
68
 
69
69
  return (
70
70
  <View>
71
- <Container>
71
+ <Container onPress={() => handleSuboptionClick()}>
72
72
  <IconControl disabled={disabled} onPress={() => handleSuboptionClick()}>
73
73
  {((option?.min === 0 && option?.max === 1) || option?.max > 1) ? (
74
74
  state?.selected ? (
@@ -139,7 +139,7 @@ export const ProductOptionSubOptionUI = (props: any) => {
139
139
  )}
140
140
  </PositionControl>
141
141
  {price > 0 && (
142
- <OText size={12} lineHeight={18} color={theme.colors.textSecondary}>
142
+ <OText size={12} lineHeight={18} color={theme.colors.textSecondary} style={{ paddingRight: 10 }}>
143
143
  + {parsePrice(price)}
144
144
  </OText>
145
145
  )}
@@ -4,12 +4,12 @@ export const Container = styled.TouchableOpacity`
4
4
  flex-direction: row;
5
5
  align-items: center;
6
6
  justify-content: space-between;
7
- padding: 10px;
8
7
  width: 100%;
9
8
  `
10
9
 
11
10
  export const IconControl = styled.TouchableOpacity`
12
11
  flex-direction: row;
12
+ padding: 10px;
13
13
  width: 45%;
14
14
  align-items: center;
15
15
  `