ordering-ui-react-native 0.23.28 → 0.23.29

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.23.28",
3
+ "version": "0.23.29",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -1,5 +1,4 @@
1
1
  import React, { useState, useCallback } from 'react'
2
-
3
2
  import { Platform, StyleSheet, View, TouchableOpacity, ScrollView } from 'react-native';
4
3
  import AntDesignIcon from 'react-native-vector-icons/AntDesign'
5
4
 
@@ -25,7 +24,8 @@ import {
25
24
  useLanguage,
26
25
  useUtils,
27
26
  useConfig,
28
- useSession
27
+ useSession,
28
+ useApi
29
29
  } from 'ordering-components/native';
30
30
  import { useTheme } from 'styled-components/native';
31
31
  import { ReviewCustomer } from '../ReviewCustomer'
@@ -46,6 +46,7 @@ interface OrderContent {
46
46
  export const OrderContentComponent = (props: OrderContent) => {
47
47
  const [, t] = useLanguage();
48
48
  const theme = useTheme()
49
+ const [ordering] = useApi()
49
50
  const [{ user }] = useSession()
50
51
  const { order, logisticOrderStatus, isOrderGroup, lastOrder } = props;
51
52
  const [{ parsePrice, parseNumber }] = useUtils();
@@ -439,9 +440,19 @@ export const OrderContentComponent = (props: OrderContent) => {
439
440
  </OText>
440
441
 
441
442
  {!!order?.comment && (
442
- <OText>
443
- {`${t('ORDER_COMMENT', 'Order Comment')}: ${order?.comment}`}
444
- </OText>
443
+ <>
444
+ <OText>
445
+ {`${t('ORDER_COMMENT', 'Order Comment')}: `}
446
+ </OText>
447
+ <OText
448
+ {...(ordering?.project?.includes('delosi') && {
449
+ color: theme.colors.primary,
450
+ weight: 'bold'
451
+ })}
452
+ >
453
+ {order?.comment}
454
+ </OText>
455
+ </>
445
456
  )}
446
457
 
447
458
  {order?.products?.length > 0 &&