ordering-ui-react-native 0.12.66 → 0.12.67
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
|
@@ -25,6 +25,8 @@ import {
|
|
|
25
25
|
import { useTheme } from 'styled-components/native';
|
|
26
26
|
import { ReviewCustomer } from '../ReviewCustomer'
|
|
27
27
|
|
|
28
|
+
import MaterialIcon from 'react-native-vector-icons/MaterialCommunityIcons'
|
|
29
|
+
|
|
28
30
|
interface OrderContent {
|
|
29
31
|
order: any,
|
|
30
32
|
logisticOrderStatus?: Array<number>,
|
|
@@ -150,46 +152,56 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
150
152
|
{
|
|
151
153
|
(order?.customer?.name || order?.customer?.lastname) && (
|
|
152
154
|
<View style={{ flexDirection: 'row' }}>
|
|
153
|
-
<
|
|
154
|
-
{
|
|
155
|
-
|
|
156
|
-
numberOfLines={1}
|
|
157
|
-
mBottom={4}
|
|
158
|
-
ellipsizeMode="tail"
|
|
159
|
-
space>
|
|
160
|
-
{order?.customer?.name}
|
|
161
|
-
</OText>
|
|
162
|
-
)}
|
|
163
|
-
{order?.customer?.middle_name && (
|
|
164
|
-
<OText
|
|
165
|
-
numberOfLines={1}
|
|
166
|
-
mBottom={4}
|
|
167
|
-
ellipsizeMode="tail"
|
|
168
|
-
space>
|
|
169
|
-
{order?.customer?.middle_name}
|
|
170
|
-
</OText>
|
|
171
|
-
)}
|
|
172
|
-
{order?.customer?.lastname && (
|
|
173
|
-
<OText
|
|
174
|
-
numberOfLines={1}
|
|
175
|
-
mBottom={4}
|
|
176
|
-
ellipsizeMode="tail"
|
|
177
|
-
space>
|
|
178
|
-
{order?.customer?.lastname}
|
|
179
|
-
</OText>
|
|
180
|
-
)}
|
|
181
|
-
{
|
|
182
|
-
order?.customer?.second_lastname && (
|
|
155
|
+
<View style={{ flexDirection: 'row', justifyContent: 'space-between', flex: 1 }}>
|
|
156
|
+
<View style={{ flexDirection: 'row' }}>
|
|
157
|
+
{order?.customer?.name && (
|
|
183
158
|
<OText
|
|
184
159
|
numberOfLines={1}
|
|
185
160
|
mBottom={4}
|
|
186
161
|
ellipsizeMode="tail"
|
|
187
162
|
space>
|
|
188
|
-
{order?.customer?.
|
|
163
|
+
{order?.customer?.name}
|
|
189
164
|
</OText>
|
|
190
|
-
)
|
|
191
|
-
|
|
192
|
-
|
|
165
|
+
)}
|
|
166
|
+
{order?.customer?.middle_name && (
|
|
167
|
+
<OText
|
|
168
|
+
numberOfLines={1}
|
|
169
|
+
mBottom={4}
|
|
170
|
+
ellipsizeMode="tail"
|
|
171
|
+
space>
|
|
172
|
+
{order?.customer?.middle_name}
|
|
173
|
+
</OText>
|
|
174
|
+
)}
|
|
175
|
+
{order?.customer?.lastname && (
|
|
176
|
+
<OText
|
|
177
|
+
numberOfLines={1}
|
|
178
|
+
mBottom={4}
|
|
179
|
+
ellipsizeMode="tail"
|
|
180
|
+
space>
|
|
181
|
+
{order?.customer?.lastname}
|
|
182
|
+
</OText>
|
|
183
|
+
)}
|
|
184
|
+
{
|
|
185
|
+
order?.customer?.second_lastname && (
|
|
186
|
+
<OText
|
|
187
|
+
numberOfLines={1}
|
|
188
|
+
mBottom={4}
|
|
189
|
+
ellipsizeMode="tail"
|
|
190
|
+
space>
|
|
191
|
+
{order?.customer?.second_lastname}
|
|
192
|
+
</OText>
|
|
193
|
+
)
|
|
194
|
+
}
|
|
195
|
+
</View>
|
|
196
|
+
{order?.user_review?.qualification && (
|
|
197
|
+
<View style={{ flexDirection: 'row' }}>
|
|
198
|
+
<MaterialIcon style={{ bottom: 2 }} name='star' size={24} color={theme.colors.arrowColor} />
|
|
199
|
+
<OText mLeft={5}>
|
|
200
|
+
{order?.user_review?.qualification}
|
|
201
|
+
</OText>
|
|
202
|
+
</View>
|
|
203
|
+
)}
|
|
204
|
+
</View>
|
|
193
205
|
</View>
|
|
194
206
|
)
|
|
195
207
|
}
|