@mjhls/mjh-framework 1.0.64 → 1.0.65
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 +7 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3830,8 +3830,7 @@ var DeckContent = function (_React$Component) {
|
|
|
3830
3830
|
currentPage: _this.props.currentPage || 1
|
|
3831
3831
|
}, _this.loadMore = debounce_1(function () {
|
|
3832
3832
|
_this.setState(function (state) {
|
|
3833
|
-
var
|
|
3834
|
-
page = state.page,
|
|
3833
|
+
var page = state.page,
|
|
3835
3834
|
from = state.from,
|
|
3836
3835
|
per = state.per,
|
|
3837
3836
|
to = state.to;
|
|
@@ -3885,8 +3884,8 @@ var DeckContent = function (_React$Component) {
|
|
|
3885
3884
|
var builder = imageUrlBuilder(client);
|
|
3886
3885
|
return builder.image(source);
|
|
3887
3886
|
}, _this.renderCardImage = function (row, page) {
|
|
3888
|
-
if (row.thumbnail
|
|
3889
|
-
return _this.urlFor(row.thumbnail
|
|
3887
|
+
if (row.thumbnail) {
|
|
3888
|
+
return _this.urlFor(row.thumbnail).url();
|
|
3890
3889
|
} else {
|
|
3891
3890
|
return _this.defaultImage;
|
|
3892
3891
|
}
|
|
@@ -5223,7 +5222,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
5223
5222
|
null,
|
|
5224
5223
|
this.state.data && this.state.data.map(function (row, index) {
|
|
5225
5224
|
// const thumbnailURL = get(row, 'thumbnail.asset.url', this.props.defaultImage)
|
|
5226
|
-
var thumbnailURL = row.thumbnail
|
|
5225
|
+
var thumbnailURL = row.thumbnail ? _this2.urlFor(row.thumbnail).url() : _this2.props.defaultImage;
|
|
5227
5226
|
return React__default.createElement(
|
|
5228
5227
|
Col,
|
|
5229
5228
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
@@ -5340,13 +5339,7 @@ var ThumbnailCard = function ThumbnailCard(_ref) {
|
|
|
5340
5339
|
return React__default.createElement(
|
|
5341
5340
|
Media,
|
|
5342
5341
|
{ className: 'mb-3 thumbnail-card' },
|
|
5343
|
-
React__default.createElement('img', {
|
|
5344
|
-
width: size,
|
|
5345
|
-
height: size,
|
|
5346
|
-
className: 'mr-3',
|
|
5347
|
-
src: item.thumbnail && item.thumbnail.asset ? urlFor(item.thumbnail.asset).url() : defaultImage,
|
|
5348
|
-
alt: 'Generic placeholder'
|
|
5349
|
-
}),
|
|
5342
|
+
React__default.createElement('img', { width: size, height: size, className: 'mr-3', src: item.thumbnail ? urlFor(item.thumbnail).url() : defaultImage, alt: 'Generic placeholder' }),
|
|
5350
5343
|
React__default.createElement(
|
|
5351
5344
|
Media.Body,
|
|
5352
5345
|
null,
|
|
@@ -7464,7 +7457,7 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
7464
7457
|
return React__default.createElement(
|
|
7465
7458
|
reactBootstrap.Carousel.Item,
|
|
7466
7459
|
{ key: slide._key },
|
|
7467
|
-
React__default.createElement('img', { src: urlFor(slide
|
|
7460
|
+
React__default.createElement('img', { src: urlFor(slide).url(), style: { width: '100%' } })
|
|
7468
7461
|
);
|
|
7469
7462
|
})
|
|
7470
7463
|
)
|