ordering-ui-react-native 0.21.16 → 0.21.17
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
|
@@ -73,23 +73,23 @@ export const DriverSchedule = (props: any) => {
|
|
|
73
73
|
<View style={{ padding: 30 }}>
|
|
74
74
|
{driverSchedule.map((item: any, i: number) => (
|
|
75
75
|
<DayContainer key={daysOfWeek[i]}>
|
|
76
|
-
<View style={{
|
|
76
|
+
<View style={{ flex: 1 }}>
|
|
77
77
|
<OText size={22} weight={700}>{daysOfWeek[i]}</OText>
|
|
78
78
|
<OText size={14}>{parseDate(getNextDate(i), { outputFormat: 'YYYY-MM-DD' })}</OText>
|
|
79
79
|
</View>
|
|
80
|
-
<View style={{
|
|
80
|
+
<View style={{ flex: 1 }}>
|
|
81
81
|
<>
|
|
82
82
|
{item?.enabled ? (
|
|
83
|
-
<View>
|
|
83
|
+
<View style={{ width: '100%' }}>
|
|
84
84
|
{item?.lapses.map((lapse: any, i: number) => (
|
|
85
85
|
<View key={`${daysOfWeek[i]}_${i}`} style={{ marginTop: 3, marginBottom: 20, flexDirection: 'row', justifyContent: 'space-between' }}>
|
|
86
|
-
<OText size={18} style={{
|
|
86
|
+
<OText size={18} style={{ flex: 1 }}>
|
|
87
87
|
{scheduleFormatted(lapse.open)}
|
|
88
88
|
</OText>
|
|
89
89
|
<OText size={18} style={{ width: 15 }}>
|
|
90
90
|
-
|
|
91
91
|
</OText>
|
|
92
|
-
<OText size={18} style={{
|
|
92
|
+
<OText size={18} style={{ flex: 1, textAlign: 'right' }}>
|
|
93
93
|
{scheduleFormatted(lapse.close)}
|
|
94
94
|
</OText>
|
|
95
95
|
</View>
|
|
@@ -88,7 +88,7 @@ export const OrdersGroupedItem = (props: any) => {
|
|
|
88
88
|
adjustsFontSizeToFit
|
|
89
89
|
>
|
|
90
90
|
{orders[0]?.delivery_datetime_utc
|
|
91
|
-
? parseDate(orders[0]?.delivery_datetime_utc
|
|
91
|
+
? parseDate(orders[0]?.delivery_datetime_utc)
|
|
92
92
|
: parseDate(orders[0]?.delivery_datetime, { utc: false })}
|
|
93
93
|
</OText>
|
|
94
94
|
</View>
|