Ensure HashParserHOC has access to redux

This commit is contained in:
Ray Schamp committed 2018-10-11 15:50:19 +01:00
1 parent 7277a973fc
commit 43ca1542f7
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ const BlocksOnly = props => (
</GUI>
);
const App = HashParserHOC(AppStateHOC(BlocksOnly));
const App = AppStateHOC(HashParserHOC(BlocksOnly));
const appTarget = document.createElement('div');
document.body.appendChild(appTarget);
+1 -1
View File
@@ -4,7 +4,7 @@ import ReactDOM from 'react-dom';
import GUI from '../containers/gui.jsx';
import HashParserHOC from '../lib/hash-parser-hoc.jsx';
import AppStateHOC from '../lib/app-state-hoc.jsx';
const WrappedGui = HashParserHOC(AppStateHOC(GUI));
const WrappedGui = AppStateHOC(HashParserHOC(GUI));
const DEFAULT_PROJECT_ID = '10015059';
+1 -1
View File
@@ -58,8 +58,8 @@ const ConnectedPlayer = connect(
// the hierarchy of HOC constructor calls clearer here; it has nothing to do with redux's
// ability to compose reducers.
const WrappedPlayer = compose(
HashParserHOC,
AppStateHOC,
HashParserHOC,
TitledHOC
)(ConnectedPlayer);