ordering-ui-react-native 0.21.87 → 0.21.88

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.21.87",
3
+ "version": "0.21.88",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -24,7 +24,7 @@ const AddressDetailsUI = (props: any) => {
24
24
 
25
25
  const styles = StyleSheet.create({
26
26
  productStyle: {
27
- width: width,
27
+ width,
28
28
  height: 151,
29
29
  marginVertical: 10
30
30
  }
@@ -45,7 +45,7 @@ const AddressDetailsUI = (props: any) => {
45
45
  </ADHeader>
46
46
  {!!apiKey && googleMapsUrl && (
47
47
  <ADMap
48
- style={{ marginStart: -40, marginEnd: -40, width: width, flex: 1 }}>
48
+ style={{ width, flex: 1, marginStart: -20, marginEnd: -20, }}>
49
49
  <FastImage
50
50
  style={styles.productStyle}
51
51
  source={{
@@ -474,7 +474,7 @@ const CheckoutUI = (props: any) => {
474
474
  </TopHeader>
475
475
  </View>
476
476
  </SafeAreaView>
477
- <Container pt={0} forwardRef={containerRef} noPadding onScroll={handleScroll}>
477
+ <Container pt={0} forwardRef={containerRef} showsVerticalScrollIndicator={false} noPadding onScroll={handleScroll}>
478
478
  <View style={styles.wrapperNavbar}>
479
479
  <NavBar
480
480
  hideArrowLeft
@@ -110,7 +110,7 @@ const OrderProgressUI = (props: any) => {
110
110
  setInitialLoaded(true)
111
111
  }, [orderList.loading, initialLoaded])
112
112
 
113
- const progressBarObjt = lastOrder?.delivery_type && lastOrder?.delivery_type === 2 ? getOrderStatuPickUp : getOrderStatus
113
+ const progressBarObjt = (s: any) => lastOrder?.delivery_type && lastOrder?.delivery_type === 2 ? getOrderStatuPickUp(s) : getOrderStatus(s)
114
114
 
115
115
  return (
116
116
  <>
@@ -130,7 +130,7 @@ const OrderProgressUI = (props: any) => {
130
130
  <View style={styles.logoWrapper}>
131
131
  <FastImage
132
132
  style={{ width: 50, height: 50 }}
133
- source={orderList?.orders.length === 1 ? {
133
+ source={orderList?.orders.length === 1 && lastOrder?.business?.logo.includes('http') ? {
134
134
  uri: optimizeImage(lastOrder?.business?.logo, 'h_50,c_limit'),
135
135
  priority: FastImage.priority.normal,
136
136
  } : theme.images.logos.logotype}
@@ -209,6 +209,16 @@ export const OrderProgress = (props: any) => {
209
209
  pageSize: 10,
210
210
  controlType: 'infinity'
211
211
  },
212
+ propsToFetch: [
213
+ 'id',
214
+ 'name',
215
+ 'business',
216
+ 'status',
217
+ 'delivery_type',
218
+ 'delivery_datetime_utc',
219
+ 'delivery_datetime',
220
+ 'reporting_data'
221
+ ],
212
222
  noGiftCardOrders: true
213
223
  }
214
224
 
@@ -285,7 +285,7 @@ const SingleOrderCardUI = (props: SingleOrderCardParams) => {
285
285
  ) : (
286
286
  <Price>
287
287
  <OText size={12} lineHeight={18}>
288
- {parsePrice(order?.summary?.total || order?.total)}
288
+ {parsePrice(order?.total)}
289
289
  </OText>
290
290
  </Price>
291
291
  )}