mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-26 16:53:00 +00:00
App code reformat
This commit is contained in:
parent
4986f3f432
commit
9cea2ca7a6
1 changed files with 3 additions and 3 deletions
|
|
@ -5,12 +5,12 @@ const routerViewsConfig = require('./routerViewsConfig');
|
||||||
const styles = require('./styles');
|
const styles = require('./styles');
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const services = React.useMemo(() => ({
|
|
||||||
keyboardNavigation: new KeyboardNavigation()
|
|
||||||
}), []);
|
|
||||||
const onPathNotMatch = React.useCallback(() => {
|
const onPathNotMatch = React.useCallback(() => {
|
||||||
window.history.back();
|
window.history.back();
|
||||||
}, []);
|
}, []);
|
||||||
|
const services = React.useMemo(() => ({
|
||||||
|
keyboardNavigation: new KeyboardNavigation()
|
||||||
|
}), []);
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
services.keyboardNavigation.start();
|
services.keyboardNavigation.start();
|
||||||
}, [services]);
|
}, [services]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue