mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 06:32:11 +00:00
useModalsContainer hook implemented
This commit is contained in:
parent
1612f797e2
commit
2a78d4bb15
2 changed files with 10 additions and 0 deletions
|
|
@ -1,7 +1,9 @@
|
|||
const ModalsContainerProvider = require('./ModalsContainerProvider');
|
||||
const useModalsContainer = require('./useModalsContainer');
|
||||
const withModalsContainer = require('./withModalsContainer');
|
||||
|
||||
module.exports = {
|
||||
ModalsContainerProvider,
|
||||
useModalsContainer,
|
||||
withModalsContainer
|
||||
};
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
const React = require('react');
|
||||
const ModalsContainerContext = require('./ModalsContainerContext');
|
||||
|
||||
const useModalsContainer = () => {
|
||||
return React.useContext(ModalsContainerContext);
|
||||
};
|
||||
|
||||
module.exports = useModalsContainer;
|
||||
Loading…
Reference in a new issue