@treely/strapi-slices 4.4.5 → 4.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/strapi-slices.cjs.development.js +5 -3
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +5 -3
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/slices/Cta/Cta.tsx +1 -1
- package/src/slices/Facts/Facts.tsx +1 -1
- package/src/slices/QuoteCards/QuoteCards.tsx +106 -101
|
@@ -1576,6 +1576,8 @@ var QAndA = function QAndA(_ref) {
|
|
|
1576
1576
|
|
|
1577
1577
|
var QuoteCards = function QuoteCards(_ref) {
|
|
1578
1578
|
var slice = _ref.slice;
|
|
1579
|
+
var _useRouter = router.useRouter(),
|
|
1580
|
+
push = _useRouter.push;
|
|
1579
1581
|
return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(boemly.Box, {
|
|
1580
1582
|
id: convertToKebabCase(slice.title),
|
|
1581
1583
|
position: "relative",
|
|
@@ -1649,7 +1651,7 @@ var QuoteCards = function QuoteCards(_ref) {
|
|
|
1649
1651
|
text: slice.hero.button.text,
|
|
1650
1652
|
onClick: function onClick() {
|
|
1651
1653
|
var _slice$hero;
|
|
1652
|
-
return strapiLinkUrl((_slice$hero = slice.hero) == null ? void 0 : _slice$hero.button);
|
|
1654
|
+
return push(strapiLinkUrl((_slice$hero = slice.hero) == null ? void 0 : _slice$hero.button));
|
|
1653
1655
|
}
|
|
1654
1656
|
},
|
|
1655
1657
|
image: slice.hero.image && React__default.default.createElement(Image__default.default, {
|
|
@@ -3475,7 +3477,7 @@ var Cta = function Cta(_ref) {
|
|
|
3475
3477
|
},
|
|
3476
3478
|
title: ctaCard.title,
|
|
3477
3479
|
titleProps: {
|
|
3478
|
-
fontFamily: '
|
|
3480
|
+
fontFamily: 'heading',
|
|
3479
3481
|
fontSize: '4xl',
|
|
3480
3482
|
fontWeight: '600',
|
|
3481
3483
|
lineHeight: '9',
|
|
@@ -3871,7 +3873,7 @@ var Facts = function Facts(_ref) {
|
|
|
3871
3873
|
mt: ['8', '8', '8', slice.facts.length > 3 ? '16' : '0']
|
|
3872
3874
|
}, React__default.default.createElement(boemly.Heading, {
|
|
3873
3875
|
fontSize: "6xl",
|
|
3874
|
-
fontFamily: "
|
|
3876
|
+
fontFamily: "display",
|
|
3875
3877
|
lineHeight: "10",
|
|
3876
3878
|
fontWeight: "700",
|
|
3877
3879
|
color: VARIANTS$2[slice.variant].factValueColor,
|