@micromag/viewer 0.3.503 → 0.3.504
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/es/index.js +3 -7
- package/lib/index.js +3 -7
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -1301,13 +1301,9 @@ var ViewerMenuShare = function ViewerMenuShare(_ref) {
|
|
|
1301
1301
|
return !value;
|
|
1302
1302
|
});
|
|
1303
1303
|
}, [setShareCurrentScreen]);
|
|
1304
|
-
var
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
setFinalShareUrl = _useState4[1];
|
|
1308
|
-
useEffect(function () {
|
|
1309
|
-
setFinalShareUrl(shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex + 1) : shareUrl);
|
|
1310
|
-
}, [shareCurrentScreen, currentScreenIndex, setFinalShareUrl]);
|
|
1304
|
+
var finalShareUrl = useMemo(function () {
|
|
1305
|
+
return shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex + 1) : shareUrl;
|
|
1306
|
+
}, [shareUrl, shareCurrentScreen, currentScreenIndex]);
|
|
1311
1307
|
return /*#__PURE__*/React.createElement("div", {
|
|
1312
1308
|
className: classNames([styles$7.container, _defineProperty({}, className, className !== null)]),
|
|
1313
1309
|
style: _objectSpread(_objectSpread({}, brandImageStyle), {}, {
|
package/lib/index.js
CHANGED
|
@@ -1863,13 +1863,9 @@ var ViewerMenuShare = function ViewerMenuShare(_ref) {
|
|
|
1863
1863
|
return !value;
|
|
1864
1864
|
});
|
|
1865
1865
|
}, [setShareCurrentScreen]);
|
|
1866
|
-
var
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
setFinalShareUrl = _useState4[1];
|
|
1870
|
-
React.useEffect(function () {
|
|
1871
|
-
setFinalShareUrl(shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex + 1) : shareUrl);
|
|
1872
|
-
}, [shareCurrentScreen, currentScreenIndex, setFinalShareUrl]);
|
|
1866
|
+
var finalShareUrl = React.useMemo(function () {
|
|
1867
|
+
return shareCurrentScreen && currentScreenIndex !== 0 ? "".concat(shareUrl, "/").concat(currentScreenIndex + 1) : shareUrl;
|
|
1868
|
+
}, [shareUrl, shareCurrentScreen, currentScreenIndex]);
|
|
1873
1869
|
return /*#__PURE__*/React.createElement("div", {
|
|
1874
1870
|
className: classNames([styles$7.container, _defineProperty({}, className, className !== null)]),
|
|
1875
1871
|
style: _objectSpread(_objectSpread({}, brandImageStyle), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.504",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"access": "public",
|
|
93
93
|
"registry": "https://registry.npmjs.org/"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "a2b150ae9eaed5f217d32725409c5d780d0afb52"
|
|
96
96
|
}
|