ordering-ui-react-native 0.21.87-release → 0.21.88-release
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
|
@@ -65,6 +65,7 @@ export const OrderHeaderComponent = (props: OrderHeader) => {
|
|
|
65
65
|
const messagesReadIds = messagesReadList?.map((message: any) => message?.order_message_id)
|
|
66
66
|
|
|
67
67
|
const filteredMessages = messagesReadList?.length > 0 ? messages?.messages?.filter((message: any) => !messagesReadIds?.includes(message?.id)) : messages?.messages
|
|
68
|
+
const cateringTypes = [7, 8]
|
|
68
69
|
|
|
69
70
|
const styles = StyleSheet.create({
|
|
70
71
|
icons: {
|
|
@@ -228,12 +229,18 @@ export const OrderHeaderComponent = (props: OrderHeader) => {
|
|
|
228
229
|
<OrderHeader>
|
|
229
230
|
{!props.isCustomView ? (
|
|
230
231
|
<OText size={13} style={{ marginBottom: 5 }}>
|
|
231
|
-
|
|
232
|
+
<>
|
|
233
|
+
{cateringTypes.includes(order?.delivery_type) ? `${t('CREATED_AT', 'Created at')}: ${parseDate(order?.created_at)}\n` : ''}
|
|
234
|
+
{cateringTypes.includes(order?.delivery_type) ? `${t('PLACED_TO', 'Placed to')}: ` : ''}{deliveryDate()}
|
|
235
|
+
</>
|
|
232
236
|
</OText>
|
|
233
237
|
) : (
|
|
234
238
|
<Header style={{ alignItems: 'center' }}>
|
|
235
239
|
<OText size={13} style={{ marginBottom: 5 }}>
|
|
236
|
-
|
|
240
|
+
<>
|
|
241
|
+
{cateringTypes.includes(order?.delivery_type) ? `${t('CREATED_AT', 'Created at')}: ${parseDate(order?.created_at)}\n` : ''}
|
|
242
|
+
{cateringTypes.includes(order?.delivery_type) ? `${t('PLACED_TO', 'Placed to')}: ` : ''}{deliveryDate()}
|
|
243
|
+
</>
|
|
237
244
|
</OText>
|
|
238
245
|
|
|
239
246
|
{(!order?.isLogistic || (!logisticOrderStatus?.includes(order?.status) && !order?.order_group)) && (
|