ordering-ui-react-native 0.22.89 → 0.22.90
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
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
Total,
|
|
15
15
|
OSRow,
|
|
16
16
|
OrderVehicle,
|
|
17
|
+
OrderSpot,
|
|
17
18
|
} from './styles';
|
|
18
19
|
|
|
19
20
|
import { ProductItemAccordion } from '../ProductItemAccordion';
|
|
@@ -662,6 +663,20 @@ export const OrderContentComponent = (props: OrderContent) => {
|
|
|
662
663
|
)}
|
|
663
664
|
|
|
664
665
|
</OrderBill >
|
|
666
|
+
|
|
667
|
+
{!!order?.spot_number && (
|
|
668
|
+
<OrderSpot vehicleExists={!!order?.vehicle}>
|
|
669
|
+
<Table>
|
|
670
|
+
<OText style={{ marginBottom: 5 }}>
|
|
671
|
+
{t('SPOT_NUMBER', 'Spot number')}
|
|
672
|
+
</OText>
|
|
673
|
+
<OText style={{ marginBottom: 5 }}>
|
|
674
|
+
{order?.spot_number}
|
|
675
|
+
</OText>
|
|
676
|
+
</Table>
|
|
677
|
+
</OrderSpot>
|
|
678
|
+
)}
|
|
679
|
+
|
|
665
680
|
{!!order?.vehicle && (
|
|
666
681
|
<OrderVehicle>
|
|
667
682
|
<OText
|
|
@@ -83,6 +83,16 @@ export const OrderVehicle = styled.View`
|
|
|
83
83
|
flex: 1;
|
|
84
84
|
`;
|
|
85
85
|
|
|
86
|
+
export const OrderSpot = styled.View`
|
|
87
|
+
border-top-width: 1px;
|
|
88
|
+
border-top-color: ${(props: any) => props.theme.colors.borderTops};
|
|
89
|
+
padding-vertical: 20px;
|
|
90
|
+
${(props: any) => !props.vehicleExists && css`
|
|
91
|
+
padding-bottom: 50px;
|
|
92
|
+
`}
|
|
93
|
+
flex: 1;
|
|
94
|
+
`;
|
|
95
|
+
|
|
86
96
|
export const Total = styled.View`
|
|
87
97
|
border-top-width: 1px;
|
|
88
98
|
border-top-color: ${(props: any) => props.theme.colors.borderTops};
|