diff options
author | Jason <jason.daurus@gmail.com> | 2016-06-19 02:53:15 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-06-19 02:53:15 +0800 |
commit | d01e49c6d5e474700956a9b7f1171a4229bfa750 (patch) | |
tree | 1f373fc643dd077f24a8738f793d91a1da43d384 /web/src/js/components/Footer.jsx | |
parent | 23b976a999f41439e83c1010474ec9dc680b8486 (diff) | |
download | mitmproxy-d01e49c6d5e474700956a9b7f1171a4229bfa750.tar.gz mitmproxy-d01e49c6d5e474700956a9b7f1171a4229bfa750.tar.bz2 mitmproxy-d01e49c6d5e474700956a9b7f1171a4229bfa750.zip |
[web] replace SetttingsActions.update with settings.updateSettings
Diffstat (limited to 'web/src/js/components/Footer.jsx')
-rw-r--r-- | web/src/js/components/Footer.jsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/src/js/components/Footer.jsx b/web/src/js/components/Footer.jsx index 1f6de2d7..82d6d8a1 100644 --- a/web/src/js/components/Footer.jsx +++ b/web/src/js/components/Footer.jsx @@ -1,11 +1,12 @@ import React from 'react' +import { connect } from 'react-redux' import { formatSize } from '../utils.js' Footer.propTypes = { settings: React.PropTypes.object.isRequired, } -export default function Footer({ settings }) { +function Footer({ settings }) { return ( <footer> {settings.mode && settings.mode != "regular" && ( @@ -44,3 +45,9 @@ export default function Footer({ settings }) { </footer> ) } + +export default connect( + state => ({ + settings: state.settings.settings, + }) +)(Footer) |