Clean up comments

This commit is contained in:
Nikita Nek Dudnik
2020-05-13 09:14:34 +02:00
parent 408435eb84
commit 061ffc60ac
@@ -14,20 +14,8 @@
* limitations under the License.
*/
import React, { FC, useReducer, Dispatch } from 'react';
// import { Provider, useDispatch } from 'react-redux';
// import store from '../../state/store';
import { circleCIApiRef } from '../../api';
// const RehydrateSettings = () => {
// const dispatch: Dispatch = useDispatch();
// React.useEffect(() => {
// dispatch.settings.rehydrate();
// }, []);
// return null;
// };
export const SettingsContext = React.createContext<
[RootState, Dispatch<Action>]
>([] as any);
@@ -77,12 +65,7 @@ export const Store: FC = ({ children }) => {
const [state, dispatch] = useReducer(reducer, initialState);
return (
<SettingsContext.Provider value={[state, dispatch]}>
{/* <Provider store={store}> */}
<div>
{/* <RehydrateSettings /> */}
{children}
</div>
{/* </Provider> */}
<div>{children}</div>
</SettingsContext.Provider>
);
};