Added Dissenter url shop link to ShopPanel
• Added: - Dissenter url shop link to ShopPanel
This commit is contained in:
parent
bc2eeee497
commit
96ee203a54
@ -4,6 +4,7 @@ import Button from '../button'
|
|||||||
import Text from '../text'
|
import Text from '../text'
|
||||||
|
|
||||||
export default class PanelLayout extends PureComponent {
|
export default class PanelLayout extends PureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
subtitle: PropTypes.string,
|
subtitle: PropTypes.string,
|
||||||
@ -14,6 +15,7 @@ export default class PanelLayout extends PureComponent {
|
|||||||
footerButtonTitle: PropTypes.string,
|
footerButtonTitle: PropTypes.string,
|
||||||
footerButtonAction: PropTypes.func,
|
footerButtonAction: PropTypes.func,
|
||||||
footerButtonTo: PropTypes.string,
|
footerButtonTo: PropTypes.string,
|
||||||
|
footerButtonHref: PropTypes.string,
|
||||||
noPadding: PropTypes.bool,
|
noPadding: PropTypes.bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,6 +29,7 @@ export default class PanelLayout extends PureComponent {
|
|||||||
footerButtonTitle,
|
footerButtonTitle,
|
||||||
footerButtonAction,
|
footerButtonAction,
|
||||||
footerButtonTo,
|
footerButtonTo,
|
||||||
|
footerButtonHref,
|
||||||
noPadding,
|
noPadding,
|
||||||
children,
|
children,
|
||||||
} = this.props
|
} = this.props
|
||||||
@ -79,13 +82,14 @@ export default class PanelLayout extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
(!!footerButtonTitle && (!!footerButtonAction || !!footerButtonTo)) &&
|
(!!footerButtonTitle && (!!footerButtonAction || !!footerButtonTo || !!footerButtonHref)) &&
|
||||||
<div className={_s.default}>
|
<div className={_s.default}>
|
||||||
<Button
|
<Button
|
||||||
isText
|
isText
|
||||||
color='none'
|
color='none'
|
||||||
backgroundColor='none'
|
backgroundColor='none'
|
||||||
to={footerButtonTo}
|
to={footerButtonTo}
|
||||||
|
href={footerButtonHref}
|
||||||
onClick={footerButtonAction}
|
onClick={footerButtonAction}
|
||||||
className={[_s.px15, _s.py15, _s.bgSubtle_onHover].join(' ')}
|
className={[_s.px15, _s.py15, _s.bgSubtle_onHover].join(' ')}
|
||||||
>
|
>
|
||||||
@ -99,4 +103,5 @@ export default class PanelLayout extends PureComponent {
|
|||||||
</aside>
|
</aside>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,5 +1,6 @@
|
|||||||
import { defineMessages, injectIntl } from 'react-intl'
|
import { defineMessages, injectIntl } from 'react-intl'
|
||||||
import { fetchFeaturedProducts } from '../../actions/shop'
|
import { fetchFeaturedProducts } from '../../actions/shop'
|
||||||
|
import { URL_DISSENTER_SHOP } from '../../constants'
|
||||||
import PanelLayout from './panel_layout'
|
import PanelLayout from './panel_layout'
|
||||||
import Image from '../image'
|
import Image from '../image'
|
||||||
import Text from '../text'
|
import Text from '../text'
|
||||||
@ -69,7 +70,7 @@ class ShopPanel extends PureComponent {
|
|||||||
noPadding
|
noPadding
|
||||||
title={intl.formatMessage(messages.title)}
|
title={intl.formatMessage(messages.title)}
|
||||||
footerButtonTitle={intl.formatMessage(messages.shop_now)}
|
footerButtonTitle={intl.formatMessage(messages.shop_now)}
|
||||||
footerButtonTo='/'
|
footerButtonHref={URL_DISSENTER_SHOP}
|
||||||
>
|
>
|
||||||
<div className={[_s.default, _s.flexRow, _s.flexWrap, _s.pl5, _s.pt5].join(' ')}>
|
<div className={[_s.default, _s.flexRow, _s.flexWrap, _s.pl5, _s.pt5].join(' ')}>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user