ordering-ui-react-native 0.18.88 → 0.18.89

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.18.88",
3
+ "version": "0.18.89",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -148,18 +148,16 @@ export const MyOrders = (props: any) => {
148
148
  )}
149
149
  {selectedOption === 'orders' && (
150
150
  <>
151
- {ordersLength?.preordersLength > 0 && (
152
- <View style={{ paddingHorizontal: isChewLayout ? 20 : 40 }}>
153
- <OrdersOption
154
- {...props}
155
- preOrders
156
- ordersLength={ordersLength}
157
- setOrdersLength={setOrdersLength}
158
- setRefreshOrders={setRefreshOrders}
159
- refreshOrders={refreshOrders}
160
- />
161
- </View>
162
- )}
151
+ <View style={{ paddingHorizontal: isChewLayout ? 20 : 40 }}>
152
+ <OrdersOption
153
+ {...props}
154
+ preOrders
155
+ ordersLength={ordersLength}
156
+ setOrdersLength={setOrdersLength}
157
+ setRefreshOrders={setRefreshOrders}
158
+ refreshOrders={refreshOrders}
159
+ />
160
+ </View>
163
161
  <View style={{ paddingHorizontal: isChewLayout ? 20 : 40 }}>
164
162
  <OrdersOption
165
163
  {...props}
@@ -211,7 +211,10 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
211
211
  />
212
212
  </NoOrdersWrapper>
213
213
  )}
214
- {((ordersLength?.activeOrdersLength > 0 && activeOrders) || (ordersLength?.previousOrdersLength > 0 && !activeOrders)) && (
214
+ {((ordersLength?.activeOrdersLength > 0 && activeOrders) ||
215
+ (ordersLength?.previousOrdersLength > 0 && !activeOrders && !preOrders) ||
216
+ (ordersLength?.preordersLength > 0 && preOrders)
217
+ ) && (
215
218
  <>
216
219
  {((titleContent && ((isBusiness && businessOrderIds?.length > 0) || isProducts)) || !titleContent) && (
217
220
  <OptionTitle titleContent={!!titleContent} isBusinessesSearchList={!!businessesSearchList}>