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