diy-template-components 2.0.89 → 2.0.90
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 +11 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +11 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -16,6 +16,7 @@ import moment from 'moment';
|
|
|
16
16
|
import Countdown from 'react-countdown';
|
|
17
17
|
import koreanLocale from 'moment/locale/ko';
|
|
18
18
|
import ReactDOMServer from 'react-dom/server';
|
|
19
|
+
import { useEffect as useEffect$1 } from '@storybook/addons';
|
|
19
20
|
import { createTheming, createUseStyles as createUseStyles$1, useTheme as useTheme$1 } from 'react-jss';
|
|
20
21
|
|
|
21
22
|
function _extends() {
|
|
@@ -1611,6 +1612,16 @@ function MobileHeader({
|
|
|
1611
1612
|
body?.removeAttribute('style');
|
|
1612
1613
|
}
|
|
1613
1614
|
}, [sideMenu]);
|
|
1615
|
+
useEffect$1(() => {
|
|
1616
|
+
if (header?.effectivePrice) {
|
|
1617
|
+
const body = navEl?.current?.ownerDocument?.body;
|
|
1618
|
+
console.log("body", body);
|
|
1619
|
+
console.log("body 1", document?.getElementsByClassName(classes.section)?.closest('body'));
|
|
1620
|
+
if (body) {
|
|
1621
|
+
body.style.marginBottom = '130px';
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
}, []);
|
|
1614
1625
|
let downloadLink = null;
|
|
1615
1626
|
const downloadAppText = countryCode === 'KR' ? '앱다운로드' : 'Download App';
|
|
1616
1627
|
const apkURL = header?.apkURL;
|
|
@@ -1682,12 +1693,6 @@ function MobileHeader({
|
|
|
1682
1693
|
if (!header?.effectivePrice) {
|
|
1683
1694
|
return null;
|
|
1684
1695
|
}
|
|
1685
|
-
const body = navEl?.current?.ownerDocument?.body;
|
|
1686
|
-
console.log("body", body);
|
|
1687
|
-
console.log("body 1", document?.getElementsByClassName(classes.section)?.closest('body'));
|
|
1688
|
-
if (body) {
|
|
1689
|
-
body.style.marginBottom = '130px';
|
|
1690
|
-
}
|
|
1691
1696
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
1692
1697
|
className: classes.BottomSheetContainer
|
|
1693
1698
|
}, OfferDetailsJSX(), /*#__PURE__*/React.createElement("div", {
|