react-device-frameset
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -52,3 +52,3 @@ "use strict"; | ||
var landscape = 'landscape' in props ? props.landscape : undefined; | ||
var style = react_1.useMemo(function () { return landscape ? ({ width: height, height: width }) : ({ width: width, height: height }); }, [width, height, landscape]); | ||
var style = react_1.useMemo(function () { return (landscape && DeviceOptions_1.DeviceOptions[device].hasLandscape) ? ({ width: height, height: width }) : ({ width: width, height: height }); }, [width, height, landscape, device]); | ||
return (react_1.default.createElement("div", __assign({ className: "marvel-device " + DeviceOptions_1.DeviceOptions[device].device + " " + (color ? color : '') + " " + (landscape ? 'landscape' : '') }, divProps, { style: style }), | ||
@@ -55,0 +55,0 @@ react_1.default.createElement("div", { className: "inner" }), |
@@ -25,3 +25,3 @@ { | ||
"repository": "https://github.com/zheeeng/react-device-frameset", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"license": "MIT", | ||
@@ -28,0 +28,0 @@ "main": "lib/DeviceFrameset.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303657