diy-template-components 0.2.84 → 0.2.85
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 +1 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -2152,7 +2152,6 @@ function PageRenderer$1({
|
|
|
2152
2152
|
countryCode,
|
|
2153
2153
|
currencySymbol
|
|
2154
2154
|
}) {
|
|
2155
|
-
const theme = useMemo(() => getTheme(color, font), [color, font]);
|
|
2156
2155
|
const navList = header?.navs;
|
|
2157
2156
|
const context = useMemo(() => ({
|
|
2158
2157
|
isMobile,
|
|
@@ -2175,6 +2174,7 @@ function PageRenderer$1({
|
|
|
2175
2174
|
countryCode,
|
|
2176
2175
|
currencySymbol
|
|
2177
2176
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
|
|
2177
|
+
const theme = useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
2178
2178
|
const Wrapper = SectionWrapper || Fragment;
|
|
2179
2179
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
2180
2180
|
theme: theme
|