diy-template-components 0.0.70 → 0.0.71
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/build/index.es.js +3 -3
- package/build/index.es.js.map +1 -1
- package/build/index.js +3 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -455,7 +455,7 @@ function useLinkBuilder(data) {
|
|
|
455
455
|
return null;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
if (data?.isExistingLink) {
|
|
458
|
+
if (data?.isExistingLink === false) {
|
|
459
459
|
return data.link;
|
|
460
460
|
}
|
|
461
461
|
|
|
@@ -497,8 +497,8 @@ const Button = /*#__PURE__*/React.forwardRef(function Button({
|
|
|
497
497
|
return data?.isLink ? /*#__PURE__*/React__default["default"].createElement("a", _extends({
|
|
498
498
|
ref: ref,
|
|
499
499
|
href: link,
|
|
500
|
-
target: data?.isExistingLink ? '_blank' : null,
|
|
501
|
-
rel: data?.isExistingLink ? 'nofollow noopener' : null,
|
|
500
|
+
target: data?.isExistingLink === false ? '_blank' : null,
|
|
501
|
+
rel: data?.isExistingLink === false ? 'nofollow noopener' : null,
|
|
502
502
|
className: (active ? classes.active : '') + ' ' + classes[type] + ' ' + classes[size] + ' ' + classes.anchorClass,
|
|
503
503
|
style: styling
|
|
504
504
|
}, elementProps), data?.value) : /*#__PURE__*/React__default["default"].createElement("button", _extends({
|