@mjhls/mjh-framework 1.0.61 → 1.0.62
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/README.md +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3979,6 +3979,7 @@ var DeckContent = function (_React$Component) {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
|
|
3981
3981
|
var pageNumber = row.pageNumber || _this.state.page;
|
|
3982
|
+
var contentCategoryName = row.contentCategory ? row.contentCategory.name : 'Articles';
|
|
3982
3983
|
|
|
3983
3984
|
return React__default.createElement(
|
|
3984
3985
|
VisibilitySensor,
|
|
@@ -3995,7 +3996,7 @@ var DeckContent = function (_React$Component) {
|
|
|
3995
3996
|
{ className: 'content-card', style: { flexDirection: mode } },
|
|
3996
3997
|
React__default.createElement(
|
|
3997
3998
|
Link,
|
|
3998
|
-
{ href: _this.mapping[
|
|
3999
|
+
{ href: _this.mapping[contentCategoryName] + '/[url]', as: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
3999
4000
|
React__default.createElement(
|
|
4000
4001
|
'a',
|
|
4001
4002
|
null,
|
|
@@ -4007,7 +4008,7 @@ var DeckContent = function (_React$Component) {
|
|
|
4007
4008
|
null,
|
|
4008
4009
|
React__default.createElement(
|
|
4009
4010
|
Link,
|
|
4010
|
-
{ href: _this.mapping[
|
|
4011
|
+
{ href: _this.mapping[contentCategoryName] + '/[url]', as: _this.mapping[contentCategoryName] + '/' + row.url.current },
|
|
4011
4012
|
React__default.createElement(
|
|
4012
4013
|
'a',
|
|
4013
4014
|
null,
|