diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-26 17:04:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-26 17:04:59 +0900 |
commit | 0b37c2250e21e8c40c2c5e9abfe51903458cc94d (patch) | |
tree | 64555dd19f414d27308ec3cd43ed6bdfef7d077b /src/shared/store/provider.jsx | |
parent | 2ae2d1582d6b9f8059b1a3f947d442869a14fbdc (diff) | |
parent | c23333110d846b4bf4a76422853820875b74e93a (diff) |
Merge pull request #248 from ueokande/gui-settings
GUI Settings
Diffstat (limited to 'src/shared/store/provider.jsx')
-rw-r--r-- | src/shared/store/provider.jsx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/shared/store/provider.jsx b/src/shared/store/provider.jsx index 743f656..fe925aa 100644 --- a/src/shared/store/provider.jsx +++ b/src/shared/store/provider.jsx @@ -1,18 +1,15 @@ -import React from 'react'; -import PropTypes from 'prop-types'; +import { h, Component } from 'preact'; -class Provider extends React.PureComponent { +class Provider extends Component { getChildContext() { return { store: this.props.store }; } render() { - return React.Children.only(this.props.children); + return <div> + { this.props.children } + </div>; } } -Provider.childContextTypes = { - store: PropTypes.any, -}; - export default Provider; |