mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 02:22:09 +00:00
FocusableProvider uses useRef api in more convenient way
This commit is contained in:
parent
7a2155c271
commit
4aee1d51b2
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ const FocusableContext = require('./FocusableContext');
|
|||
const FocusableProvider = ({ children, ...props }) => {
|
||||
const routesContainer = useRoutesContainer();
|
||||
const modalsContainer = useModalsContainer();
|
||||
const contentContainerRef = React.useRef();
|
||||
const contentContainerRef = React.useRef(null);
|
||||
const [focusable, setFocusable] = React.useState(false);
|
||||
const onFocusableChange = React.useCallback(() => {
|
||||
const focusable =
|
||||
|
|
|
|||
Loading…
Reference in a new issue