@mjhls/mjh-framework 1.0.999 → 1.0.1000

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 CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.999
1
+ # mjh-framework v. 1.0.1000
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/mjh-framework.svg)](https://www.npmjs.com/package/mjh-framework) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
4
4
 
@@ -121,6 +121,7 @@ var ExternalResources = function ExternalResources(props) {
121
121
  )
122
122
  ),
123
123
  resources[active].length > 0 ? resources[active].map(function (r) {
124
+ var destination = r.destination ? r.destination : '';
124
125
  return React__default["default"].createElement(
125
126
  'div',
126
127
  { key: r._id, className: 'resource' },
@@ -129,7 +130,7 @@ var ExternalResources = function ExternalResources(props) {
129
130
  { id: 'thumb' },
130
131
  React__default["default"].createElement(
131
132
  'a',
132
- { href: r.destination, target: '_blank', rel: checkSisterSite.checkSisterSite(r.destination) ? '' : 'noopener noreferrer' },
133
+ { href: destination, target: '_blank', rel: checkSisterSite.checkSisterSite(destination) ? '' : 'noopener noreferrer' },
133
134
  React__default["default"].createElement('img', { src: r.thumbnail })
134
135
  )
135
136
  ),
@@ -138,7 +139,7 @@ var ExternalResources = function ExternalResources(props) {
138
139
  { id: 'details' },
139
140
  React__default["default"].createElement(
140
141
  'a',
141
- { href: r.destination, target: '_blank', rel: checkSisterSite.checkSisterSite(r.destination) ? '' : 'noopener noreferrer' },
142
+ { href: destination, target: '_blank', rel: checkSisterSite.checkSisterSite(destination) ? '' : 'noopener noreferrer' },
142
143
  React__default["default"].createElement(
143
144
  'p',
144
145
  { id: 'title' },
@@ -198,7 +199,7 @@ var ExternalResources = function ExternalResources(props) {
198
199
  ),
199
200
  React__default["default"].createElement(
200
201
  Button__default["default"],
201
- { id: 'cta', variant: 'secondary', href: r.destination, target: '_blank', rel: checkSisterSite.checkSisterSite(r.destination) ? '' : 'noopener noreferrer' },
202
+ { id: 'cta', variant: 'secondary', href: destination, target: '_blank', rel: checkSisterSite.checkSisterSite(destination) ? '' : 'noopener noreferrer' },
202
203
  cta
203
204
  )
204
205
  )
@@ -114,6 +114,7 @@ var ExternalResources = function ExternalResources(props) {
114
114
  )
115
115
  ),
116
116
  resources[active].length > 0 ? resources[active].map(function (r) {
117
+ var destination = r.destination ? r.destination : '';
117
118
  return React__default.createElement(
118
119
  'div',
119
120
  { key: r._id, className: 'resource' },
@@ -122,7 +123,7 @@ var ExternalResources = function ExternalResources(props) {
122
123
  { id: 'thumb' },
123
124
  React__default.createElement(
124
125
  'a',
125
- { href: r.destination, target: '_blank', rel: checkSisterSite(r.destination) ? '' : 'noopener noreferrer' },
126
+ { href: destination, target: '_blank', rel: checkSisterSite(destination) ? '' : 'noopener noreferrer' },
126
127
  React__default.createElement('img', { src: r.thumbnail })
127
128
  )
128
129
  ),
@@ -131,7 +132,7 @@ var ExternalResources = function ExternalResources(props) {
131
132
  { id: 'details' },
132
133
  React__default.createElement(
133
134
  'a',
134
- { href: r.destination, target: '_blank', rel: checkSisterSite(r.destination) ? '' : 'noopener noreferrer' },
135
+ { href: destination, target: '_blank', rel: checkSisterSite(destination) ? '' : 'noopener noreferrer' },
135
136
  React__default.createElement(
136
137
  'p',
137
138
  { id: 'title' },
@@ -191,7 +192,7 @@ var ExternalResources = function ExternalResources(props) {
191
192
  ),
192
193
  React__default.createElement(
193
194
  Button,
194
- { id: 'cta', variant: 'secondary', href: r.destination, target: '_blank', rel: checkSisterSite(r.destination) ? '' : 'noopener noreferrer' },
195
+ { id: 'cta', variant: 'secondary', href: destination, target: '_blank', rel: checkSisterSite(destination) ? '' : 'noopener noreferrer' },
195
196
  cta
196
197
  )
197
198
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.999",
3
+ "version": "1.0.1000",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",