ordering-ui-react-native 0.12.70 → 0.12.71
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
|
@@ -150,11 +150,11 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
150
150
|
{t('CUSTOMER_DETAILS', 'Customer details')}
|
|
151
151
|
</OText>
|
|
152
152
|
{
|
|
153
|
-
(order?.customer?.name || order?.customer?.lastname) && (
|
|
153
|
+
(!!order?.customer?.name || !!order?.customer?.lastname) && (
|
|
154
154
|
<View style={{ flexDirection: 'row' }}>
|
|
155
155
|
<View style={{ flexDirection: 'row', justifyContent: 'space-between', flex: 1 }}>
|
|
156
156
|
<View style={{ flexDirection: 'row' }}>
|
|
157
|
-
{order?.customer?.name && (
|
|
157
|
+
{!!order?.customer?.name && (
|
|
158
158
|
<OText
|
|
159
159
|
numberOfLines={1}
|
|
160
160
|
mBottom={4}
|
|
@@ -163,7 +163,7 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
163
163
|
{order?.customer?.name}
|
|
164
164
|
</OText>
|
|
165
165
|
)}
|
|
166
|
-
{order?.customer?.middle_name && (
|
|
166
|
+
{!!order?.customer?.middle_name && (
|
|
167
167
|
<OText
|
|
168
168
|
numberOfLines={1}
|
|
169
169
|
mBottom={4}
|
|
@@ -172,7 +172,7 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
172
172
|
{order?.customer?.middle_name}
|
|
173
173
|
</OText>
|
|
174
174
|
)}
|
|
175
|
-
{order?.customer?.lastname && (
|
|
175
|
+
{!!order?.customer?.lastname && (
|
|
176
176
|
<OText
|
|
177
177
|
numberOfLines={1}
|
|
178
178
|
mBottom={4}
|
|
@@ -182,7 +182,7 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
182
182
|
</OText>
|
|
183
183
|
)}
|
|
184
184
|
{
|
|
185
|
-
order?.customer?.second_lastname && (
|
|
185
|
+
!!order?.customer?.second_lastname && (
|
|
186
186
|
<OText
|
|
187
187
|
numberOfLines={1}
|
|
188
188
|
mBottom={4}
|
|
@@ -193,7 +193,7 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
193
193
|
)
|
|
194
194
|
}
|
|
195
195
|
</View>
|
|
196
|
-
{order?.user_review?.qualification && (
|
|
196
|
+
{!!order?.user_review?.qualification && (
|
|
197
197
|
<View style={{ flexDirection: 'row' }}>
|
|
198
198
|
<MaterialIcon style={{ bottom: 2 }} name='star' size={24} color={theme.colors.arrowColor} />
|
|
199
199
|
<OText mLeft={5}>
|
|
@@ -440,7 +440,7 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
440
440
|
{parsePrice(order?.summary?.total ?? 0)}
|
|
441
441
|
</OText>
|
|
442
442
|
</Table>
|
|
443
|
-
{order?.comment && (
|
|
443
|
+
{!!order?.comment && (
|
|
444
444
|
<Table>
|
|
445
445
|
<OText style={{ flex: 1 }}>{t('COMMENT', 'Comment')}</OText>
|
|
446
446
|
<OText style={{ maxWidth: '70%' }}>
|