|
|
@ -43,7 +43,6 @@ const status = { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
function OrderDetails({ mobile, route, theme }) { |
|
|
|
function OrderDetails({ mobile, route, theme }) { |
|
|
|
|
|
|
|
|
|
|
|
const { order } = route.params; |
|
|
|
const { order } = route.params; |
|
|
|
const [position, setPosition] = useState("100%"); |
|
|
|
const [position, setPosition] = useState("100%"); |
|
|
|
|
|
|
|
|
|
|
@ -85,11 +84,18 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
{ backgroundColor: Colors.theme1.greenCF + "1a" }, |
|
|
|
{ backgroundColor: Colors.theme1.greenCF + "1a" }, |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
|
<View style={tw("flex flex-row-reverse items-center")}> |
|
|
|
<View |
|
|
|
|
|
|
|
style={tw( |
|
|
|
|
|
|
|
"w-full flex flex-row-reverse justify-between items-center" |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
fontSize: mobile |
|
|
|
fontSize: mobile |
|
|
|
? mobile |
|
|
|
? mobile |
|
|
|
? fontSize.sm |
|
|
|
? fontSize.sm |
|
|
@ -114,7 +120,8 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("w-full flex flex-row-reverse items-center py-4"), |
|
|
|
tw("w-full flex flex-row-reverse items-center py-4"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderColor: Colors.theme1.grayE3, |
|
|
|
borderColor: |
|
|
|
|
|
|
|
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"), |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
@ -122,7 +129,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -135,7 +146,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
lineHeight: mobile ? 17 : "auto", |
|
|
|
lineHeight: mobile ? 17 : "auto", |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -148,7 +163,8 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
tw("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderColor: Colors.theme1.grayE3, |
|
|
|
borderColor: |
|
|
|
|
|
|
|
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"), |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
@ -157,7 +173,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -170,7 +190,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
lineHeight: mobile ? 17 : "auto", |
|
|
|
lineHeight: mobile ? 17 : "auto", |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -183,7 +207,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -196,7 +224,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
lineHeight: mobile ? 17 : "auto", |
|
|
|
lineHeight: mobile ? 17 : "auto", |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -207,8 +239,13 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
</View> |
|
|
|
</View> |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw("w-full rounded-md flex p-4 items-end mt-2"), |
|
|
|
tw("w-full rounded-md flex p-4 items-end mt-7 mb-4"), |
|
|
|
{ backgroundColor: Colors.theme1.greenFF1 + "aa" }, |
|
|
|
{ |
|
|
|
|
|
|
|
backgroundColor: |
|
|
|
|
|
|
|
theme === "light" ? Colors.theme1.greenFF1 + "aa" : null, |
|
|
|
|
|
|
|
borderWidth: theme === "light" ? 0 : 1, |
|
|
|
|
|
|
|
borderColor : Colors.theme1.greenFF1 |
|
|
|
|
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
|
<Text |
|
|
|
<Text |
|
|
@ -219,7 +256,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
? fontSize.sm |
|
|
|
? fontSize.sm |
|
|
|
: fontSize.lg |
|
|
|
: fontSize.lg |
|
|
|
: fontSize.lg, |
|
|
|
: fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -235,7 +276,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
? fontSize.sm |
|
|
|
? fontSize.sm |
|
|
|
: fontSize.lg |
|
|
|
: fontSize.lg |
|
|
|
: fontSize.lg, |
|
|
|
: fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -254,7 +299,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -266,7 +315,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -280,7 +333,8 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
tw("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderColor: Colors.theme1.grayE3, |
|
|
|
borderColor: |
|
|
|
|
|
|
|
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"), |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
@ -289,7 +343,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -301,7 +359,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -314,7 +376,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -326,7 +392,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -340,17 +410,21 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
tw("w-full flex flex-row-reverse justify-between py-4"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderBottomWidth: 1, |
|
|
|
borderColor: Colors.theme1.grayE3, |
|
|
|
borderColor: |
|
|
|
|
|
|
|
Colors.theme1.grayE3 + (theme === "light" ? "" : "55"), |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<View style={tw("flex flex-row-reverse items-center")}> |
|
|
|
<View style={tw("flex flex-row-reverse items-center")}> |
|
|
|
<Text |
|
|
|
<Text |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -362,7 +436,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -377,7 +455,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "bold", |
|
|
|
fontFamily: "bold", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -389,7 +471,11 @@ function OrderDetails({ mobile, route, theme }) { |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
tw("font-light text-right mr-1"), |
|
|
|
{ |
|
|
|
{ |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
fontSize: mobile ? fontSize.sm : fontSize.lg, |
|
|
|
color: Colors.theme1.green79, |
|
|
|
color: |
|
|
|
|
|
|
|
theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
|
|
|
|
|
|
|
fontFamily: "regular", |
|
|
|
fontFamily: "regular", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -409,7 +495,6 @@ const styles = StyleSheet.create({ |
|
|
|
alignItems: "flex-end", |
|
|
|
alignItems: "flex-end", |
|
|
|
}, |
|
|
|
}, |
|
|
|
container: { |
|
|
|
container: { |
|
|
|
backgroundColor: "white", |
|
|
|
|
|
|
|
flexDirection: "column", |
|
|
|
flexDirection: "column", |
|
|
|
paddingVertical: 0, |
|
|
|
paddingVertical: 0, |
|
|
|
paddingHorizontal: 16, |
|
|
|
paddingHorizontal: 16, |
|
|
@ -418,7 +503,7 @@ const styles = StyleSheet.create({ |
|
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
theme: state.publicApi.theme |
|
|
|
theme: state.publicApi.theme, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(OrderDetails); |
|
|
|
export default connect(mapStateToProps)(OrderDetails); |
|
|
|