File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11import React from 'react'
2+ import { connect } from 'react-redux'
3+
24import IconButton from 'cozy-ui/transpiled/react/IconButton'
35import Icon from 'cozy-ui/transpiled/react/Icon'
46import HelpOutlinedIcon from 'cozy-ui/transpiled/react/Icons/HelpOutlined'
57
6- const HelpLink = ( ) => {
8+ import { getHelpLink } from 'lib/reducers'
9+
10+ const HelpLink = ( { helpLink } ) => {
711 return (
812 < IconButton
913 component = "a"
10- href = "https://support.cozy.io/"
14+ href = { helpLink }
1115 target = "_blank"
1216 rel = "noopener, noreferrer"
1317 className = "u-p-half"
@@ -17,4 +21,8 @@ const HelpLink = () => {
1721 )
1822}
1923
20- export default HelpLink
24+ const mapStateToProps = state => ( {
25+ helpLink : getHelpLink ( state )
26+ } )
27+
28+ export default connect ( mapStateToProps ) ( HelpLink )
You can’t perform that action at this time.
0 commit comments