mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
back button click callback renamed
This commit is contained in:
parent
317405157d
commit
7c4e42ab35
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ const NavMenu = require('./NavMenu');
|
||||||
const styles = require('./styles');
|
const styles = require('./styles');
|
||||||
|
|
||||||
const NavBar = React.memo(({ className, backButton = false, tabs = [], title = '', searchBar = false, navMenu = false }) => {
|
const NavBar = React.memo(({ className, backButton = false, tabs = [], title = '', searchBar = false, navMenu = false }) => {
|
||||||
const onBackButtonClick = React.useCallback(() => {
|
const backButtonOnClick = React.useCallback(() => {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
|
|
@ -18,7 +18,7 @@ const NavBar = React.memo(({ className, backButton = false, tabs = [], title = '
|
||||||
className={styles['nav-bar-button']}
|
className={styles['nav-bar-button']}
|
||||||
icon={'ic_back_ios'}
|
icon={'ic_back_ios'}
|
||||||
label={'Back'}
|
label={'Back'}
|
||||||
onClick={onBackButtonClick}
|
onClick={backButtonOnClick}
|
||||||
/>
|
/>
|
||||||
:
|
:
|
||||||
null
|
null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue