mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-05 08:29:49 +00:00
onSeasonChanged func renamed to seasonOnSelect
This commit is contained in:
parent
015693db9d
commit
05fdbd13b2
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ const MetaDetails = ({ urlParams, queryParams }) => {
|
|||
:
|
||||
null;
|
||||
}, [queryParams]);
|
||||
const onSeasonChanged = React.useCallback((event) => {
|
||||
const seasonOnSelect = React.useCallback((event) => {
|
||||
window.location.replace(`#/metadetails/${selectedMetaResource.request.path.type_name}/${selectedMetaResource.request.path.id}?season=${event.value}`);
|
||||
}, [selectedMetaResource]);
|
||||
const selectedVideo = React.useMemo(() => {
|
||||
|
|
@ -135,7 +135,7 @@ const MetaDetails = ({ urlParams, queryParams }) => {
|
|||
className={styles['videos-list']}
|
||||
metaResource={selectedMetaResource}
|
||||
season={seasonQueryParam}
|
||||
seasonOnSelect={onSeasonChanged}
|
||||
seasonOnSelect={seasonOnSelect}
|
||||
/>
|
||||
:
|
||||
null
|
||||
|
|
|
|||
Loading…
Reference in a new issue