|
|
|
@ -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 Unit = ({ unit }) => { |
|
|
|
@ -38,13 +45,17 @@ const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => |
|
|
|
|
return ( |
|
|
|
|
<View |
|
|
|
|
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, |
|
|
|
|
borderColor: Colors.theme1.greenD9, |
|
|
|
|
backgroundColor: |
|
|
|
|
activeUnit === unit |
|
|
|
|
? Colors.theme1.greenCF |
|
|
|
|
? Colors.theme1.greenCF + (theme === "light" ? "" : "aa") |
|
|
|
|
: "transparent", |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -68,7 +79,9 @@ const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => |
|
|
|
|
color: |
|
|
|
|
activeUnit === unit |
|
|
|
|
? "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: |
|
|
|
|
activeUnit === unit |
|
|
|
|
? "white" |
|
|
|
|
: Colors.theme1.green79, |
|
|
|
|
: theme === "light" |
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
borderRightWidth: 1, |
|
|
|
|
borderColor: |
|
|
|
|
activeUnit === unit |
|
|
|
|
? "white" |
|
|
|
|
: Colors.theme1.green79, |
|
|
|
|
: theme === "light" |
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
paddingRight: 8, |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
@ -109,7 +126,9 @@ const Season = ({ season, activeUnit, name, setVideoActive, mobile, theme }) => |
|
|
|
|
color: |
|
|
|
|
activeUnit === unit |
|
|
|
|
? "white" |
|
|
|
|
: Colors.theme1.green79, |
|
|
|
|
: theme === "light" |
|
|
|
|
? Colors.theme1.green79 |
|
|
|
|
: Colors.theme1.white, |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
نمایش |
|
|
|
@ -134,7 +153,7 @@ const mapStateToProps = (state) => ({ |
|
|
|
|
vods: state.publicApi.bookSection?.vods, |
|
|
|
|
userid: state.user.status?.id, |
|
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
|
theme: state.publicApi.theme |
|
|
|
|
theme: state.publicApi.theme, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
|
|