mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
withLocationHash dropped
This commit is contained in:
parent
b982056200
commit
0020cceb05
2 changed files with 1 additions and 16 deletions
|
|
@ -7,7 +7,6 @@ const Popup = require('./Popup');
|
|||
const ShareModal = require('./ShareModal');
|
||||
const Slider = require('./Slider');
|
||||
const useLocationHash = require('./useLocationHash');
|
||||
const withLocationHash = require('./withLocationHash');
|
||||
|
||||
module.exports = {
|
||||
Checkbox,
|
||||
|
|
@ -18,6 +17,5 @@ module.exports = {
|
|||
Popup,
|
||||
ShareModal,
|
||||
Slider,
|
||||
useLocationHash,
|
||||
withLocationHash
|
||||
useLocationHash
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
const React = require('react');
|
||||
const useLocationHash = require('./useLocationHash');
|
||||
|
||||
const withLocationHash = (Component) => {
|
||||
return (props) => {
|
||||
const locationHash = useLocationHash();
|
||||
return (
|
||||
<Component {...props} locationHash={locationHash} />
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
module.exports = withLocationHash;
|
||||
Loading…
Reference in a new issue