|
|
@ -23,7 +23,14 @@ const duration = (value) => { |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => { |
|
|
|
const Season = ({ |
|
|
|
|
|
|
|
season, |
|
|
|
|
|
|
|
activeUnit, |
|
|
|
|
|
|
|
name, |
|
|
|
|
|
|
|
setVideoActive, |
|
|
|
|
|
|
|
mobile, |
|
|
|
|
|
|
|
theme, |
|
|
|
|
|
|
|
}) => { |
|
|
|
const navigation = useNavigation(); |
|
|
|
const navigation = useNavigation(); |
|
|
|
|
|
|
|
|
|
|
|
const Unit = ({ unit }) => { |
|
|
|
const Unit = ({ unit }) => { |
|
|
@ -38,13 +45,17 @@ const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<View |
|
|
|
<View |
|
|
|
style={[ |
|
|
|
style={[ |
|
|
|
tw(`w-full flex rounded-md overflow-hidden ${mobile ? "mb-3" : "mb-5"}`), |
|
|
|
tw( |
|
|
|
|
|
|
|
`w-full flex rounded-md overflow-hidden ${ |
|
|
|
|
|
|
|
mobile ? "mb-5" : "mb-5" |
|
|
|
|
|
|
|
}` |
|
|
|
|
|
|
|
), |
|
|
|
{ |
|
|
|
{ |
|
|
|
borderWidth: 1, |
|
|
|
borderWidth: 1, |
|
|
|
borderColor: Colors.theme1.greenD9, |
|
|
|
borderColor: Colors.theme1.greenD9, |
|
|
|
backgroundColor: |
|
|
|
backgroundColor: |
|
|
|
activeUnit === unit |
|
|
|
activeUnit === unit |
|
|
|
? Colors.theme1.greenCF |
|
|
|
? Colors.theme1.greenCF + (theme === "light" ? "" : "aa") |
|
|
|
: "transparent", |
|
|
|
: "transparent", |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -68,7 +79,9 @@ const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => |
|
|
|
color: |
|
|
|
color: |
|
|
|
activeUnit === unit |
|
|
|
activeUnit === unit |
|
|
|
? "white" |
|
|
|
? "white" |
|
|
|
: Colors.theme1.green79, |
|
|
|
: theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
|
> |
|
|
|
> |
|
|
@ -82,12 +95,16 @@ const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => |
|
|
|
color: |
|
|
|
color: |
|
|
|
activeUnit === unit |
|
|
|
activeUnit === unit |
|
|
|
? "white" |
|
|
|
? "white" |
|
|
|
: Colors.theme1.green79, |
|
|
|
: theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
borderRightWidth: 1, |
|
|
|
borderRightWidth: 1, |
|
|
|
borderColor: |
|
|
|
borderColor: |
|
|
|
activeUnit === unit |
|
|
|
activeUnit === unit |
|
|
|
? "white" |
|
|
|
? "white" |
|
|
|
: Colors.theme1.green79, |
|
|
|
: theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
paddingRight: 8, |
|
|
|
paddingRight: 8, |
|
|
|
}, |
|
|
|
}, |
|
|
|
]} |
|
|
|
]} |
|
|
@ -109,7 +126,9 @@ const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => |
|
|
|
color: |
|
|
|
color: |
|
|
|
activeUnit === unit |
|
|
|
activeUnit === unit |
|
|
|
? "white" |
|
|
|
? "white" |
|
|
|
: Colors.theme1.green79, |
|
|
|
: theme === "light" |
|
|
|
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
|
|
|
: Colors.theme1.white, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
نمایش |
|
|
|
نمایش |
|
|
@ -134,7 +153,7 @@ const mapStateToProps = (state) => ({ |
|
|
|
vods: state.publicApi.bookSection?.vods, |
|
|
|
vods: state.publicApi.bookSection?.vods, |
|
|
|
userid: state.user.status?.id, |
|
|
|
userid: state.user.status?.id, |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
theme: state.publicApi.theme |
|
|
|
theme: state.publicApi.theme, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
|
const mapDispatchToProps = { |
|
|
|