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