ordering-ui-react-native 0.17.32 → 0.17.33

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.32",
3
+ "version": "0.17.33",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -9,7 +9,7 @@ const TitleWrapper = styled.View`
9
9
  padding-horizontal: 10px;
10
10
  `
11
11
  const TitleTopWrapper = styled.View`
12
- flex-grow: 1;
12
+ flex: 1;
13
13
  flex-direction: row;
14
14
  align-items: center;
15
15
  `
@@ -40,7 +40,8 @@ interface Props {
40
40
  style?: ViewStyle,
41
41
  titleWrapStyle?: ViewStyle,
42
42
  paddingTop?: number,
43
- isVertical?: boolean
43
+ isVertical?: boolean,
44
+ noMargin?: any
44
45
  }
45
46
 
46
47
  const NavBar = (props: Props) => {
@@ -96,10 +97,9 @@ const NavBar = (props: Props) => {
96
97
  style={
97
98
  {
98
99
  textAlign: props.titleAlign ? props.titleAlign : 'center',
99
- marginRight: props.showCall ? 0 : 40,
100
+ marginRight: (props.showCall || !!props.noMargin) ? 0 : 40,
100
101
  color: props.titleColor || theme.colors.textNormal,
101
102
  paddingHorizontal: props.titleAlign == 'left' ? 12 : 0,
102
- width: '100%',
103
103
  ...props.titleStyle,
104
104
  }
105
105
  }
@@ -101,6 +101,7 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
101
101
  title={t('HOW_WILL_YOU_DELIVERY_TYPE', 'How will your order type?')}
102
102
  titleAlign={'center'}
103
103
  titleStyle={{ fontSize: 14 }}
104
+ noMargin
104
105
  />
105
106
  {
106
107
  items.length > 0 && (
@@ -173,7 +173,8 @@ const SingleOrderCardUI = (props: SingleOrderCardParams) => {
173
173
  {(!!order.business?.logo || theme?.images?.dummies?.businessLogo) && (
174
174
  <Logo style={styles.logoWrapper}>
175
175
  <OIcon
176
- url={optimizeImage(order.business?.logo || theme?.images?.dummies?.businessLogo, 'h_300,c_limit')}
176
+ url={optimizeImage(order.business?.logo, 'h_300,c_limit')}
177
+ src={optimizeImage(!order.business?.logo && theme?.images?.dummies?.businessLogo, 'h_300,c_limit')}
177
178
  style={styles.logo}
178
179
  />
179
180
  </Logo>