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
|
@@ -148,18 +148,16 @@ export const MyOrders = (props: any) => {
|
|
|
148
148
|
)}
|
|
149
149
|
{selectedOption === 'orders' && (
|
|
150
150
|
<>
|
|
151
|
-
{
|
|
152
|
-
<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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) ||
|
|
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}>
|