@gem-sdk/pages 1.41.0-dev.23 → 1.41.0-dev.26
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.
|
@@ -68,8 +68,8 @@ const Devices = ()=>{
|
|
|
68
68
|
const activeDevice = _const.devices.find((v)=>v.width === width);
|
|
69
69
|
if (activeDevice) return activeDevice.name;
|
|
70
70
|
let displayName = 'Desktop';
|
|
71
|
-
if (width
|
|
72
|
-
if (width
|
|
71
|
+
if (width < 768) return displayName = 'Mobile';
|
|
72
|
+
if (width < 1024) return displayName = 'Tablet';
|
|
73
73
|
return displayName;
|
|
74
74
|
};
|
|
75
75
|
const onResizePreviewScreen = react.useCallback((e)=>{
|
|
@@ -64,8 +64,8 @@ const Devices = ()=>{
|
|
|
64
64
|
const activeDevice = devices.find((v)=>v.width === width);
|
|
65
65
|
if (activeDevice) return activeDevice.name;
|
|
66
66
|
let displayName = 'Desktop';
|
|
67
|
-
if (width
|
|
68
|
-
if (width
|
|
67
|
+
if (width < 768) return displayName = 'Mobile';
|
|
68
|
+
if (width < 1024) return displayName = 'Tablet';
|
|
69
69
|
return displayName;
|
|
70
70
|
};
|
|
71
71
|
const onResizePreviewScreen = useCallback((e)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/pages",
|
|
3
|
-
"version": "1.41.0-dev.
|
|
3
|
+
"version": "1.41.0-dev.26",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"next": "latest"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@gem-sdk/core": "1.41.0-dev.
|
|
29
|
+
"@gem-sdk/core": "1.41.0-dev.26",
|
|
30
30
|
"@gem-sdk/plugin-cookie-bar": "1.41.0-dev.23",
|
|
31
31
|
"@gem-sdk/plugin-quick-view": "1.41.0-dev.23",
|
|
32
32
|
"@gem-sdk/plugin-sticky-add-to-cart": "1.41.0-dev.23"
|