mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
proptypes added to RouteFocusableProvider
This commit is contained in:
parent
6a736d2f89
commit
49457afa52
1 changed files with 5 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FocusableContext, withModalsContainer } from 'stremio-common';
|
||||
|
||||
class RouteFocusableProvider extends Component {
|
||||
|
|
@ -51,6 +52,10 @@ class RouteFocusableProvider extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
RouteFocusableProvider.propTypes = {
|
||||
modalsContainer: PropTypes.instanceOf(HTMLElement).isRequired
|
||||
};
|
||||
|
||||
const RouteFocusableProviderWithModalsContainer = withModalsContainer(RouteFocusableProvider);
|
||||
|
||||
RouteFocusableProviderWithModalsContainer.displayName = 'RouteFocusableProviderWithModalsContainer';
|
||||
|
|
|
|||
Loading…
Reference in a new issue