ordering-ui-react-native 0.17.68 → 0.17.69
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
|
@@ -186,7 +186,7 @@ export const PreviousOrders = (props: any) => {
|
|
|
186
186
|
|
|
187
187
|
return (
|
|
188
188
|
<>
|
|
189
|
-
{Object.keys(ordersGrouped)?.length > 0 && (
|
|
189
|
+
{ordersGrouped && Object.keys(ordersGrouped)?.length > 0 && (
|
|
190
190
|
<View style={{ marginBottom: 10 }}>
|
|
191
191
|
{Object.keys(ordersGrouped).map(k => (
|
|
192
192
|
<OrdersGroupedItem
|
|
@@ -97,6 +97,7 @@ import { UserFormDetailsUI } from './src/components/UserFormDetails';
|
|
|
97
97
|
import { WalletTransactionItem } from './src/components/WalletTransactionItem';
|
|
98
98
|
import { Promotions } from './src/components/Promotions'
|
|
99
99
|
import { PageBanner } from './src/components/PageBanner'
|
|
100
|
+
import { MultiCart } from './src/components/MultiCart'
|
|
100
101
|
import { USER_TYPE, ORDER_TYPES } from './src/config/constants'
|
|
101
102
|
|
|
102
103
|
import { OSBill, OSTable, OSCoupon, OSTotal, OSRow } from './src/components/OrderSummary/styles';
|
|
@@ -262,6 +263,7 @@ export {
|
|
|
262
263
|
Promotions,
|
|
263
264
|
PageBanner,
|
|
264
265
|
MyOrders,
|
|
266
|
+
MultiCart,
|
|
265
267
|
ORDER_TYPES,
|
|
266
268
|
USER_TYPE,
|
|
267
269
|
|
|
@@ -232,7 +232,7 @@ export const ProductItemAccordion = (props: ProductItemAccordionParams) => {
|
|
|
232
232
|
<View style={{ display: 'flex', flexDirection: 'column', flex: 1, alignItems: 'flex-end', maxWidth: 100 }}>
|
|
233
233
|
<View style={{ flexDirection: 'row' }}>
|
|
234
234
|
<OText size={12} lineHeight={18} weight={'400'}>{parsePrice(product.total || product.price)}</OText>
|
|
235
|
-
{(productInfo().ingredients.length > 0 || productInfo().options.length > 0 || product.comment) && (
|
|
235
|
+
{(productInfo().ingredients.length > 0 || productInfo().options.length > 0 || !!product.comment) && (
|
|
236
236
|
<MaterialCommunityIcon name='chevron-down' size={18} />
|
|
237
237
|
)}
|
|
238
238
|
</View>
|
|
@@ -305,7 +305,7 @@ export const ProductItemAccordion = (props: ProductItemAccordionParams) => {
|
|
|
305
305
|
))}
|
|
306
306
|
</ProductOptionsList>
|
|
307
307
|
)}
|
|
308
|
-
{product.comment && (
|
|
308
|
+
{!!product.comment && (
|
|
309
309
|
<ProductComment>
|
|
310
310
|
<OText size={10} color={theme.colors.textSecondary}>{t('SPECIAL_COMMENT', 'Special Comment')}</OText>
|
|
311
311
|
<OText size={10} color={theme.colors.textThird}>{product.comment}</OText>
|