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.js
CHANGED
|
@@ -2167,7 +2167,6 @@ function PageRenderer$1({
|
|
|
2167
2167
|
countryCode,
|
|
2168
2168
|
currencySymbol
|
|
2169
2169
|
}) {
|
|
2170
|
-
const theme = React.useMemo(() => getTheme(color, font), [color, font]);
|
|
2171
2170
|
const navList = header?.navs;
|
|
2172
2171
|
const context = React.useMemo(() => ({
|
|
2173
2172
|
isMobile,
|
|
@@ -2190,6 +2189,7 @@ function PageRenderer$1({
|
|
|
2190
2189
|
countryCode,
|
|
2191
2190
|
currencySymbol
|
|
2192
2191
|
}), [isMobile, isLandingPages, layout, baseURLs, hashToken, isPreview, isEdit, templateId, navList, isMasterTemplate, basePath, validations, isTutorWebsite, extraProps, hideLogin, _id, countryCode, currencySymbol]);
|
|
2192
|
+
const theme = React.useMemo(() => getTheme(color, font, context.isMobile), [color, font, context.isMobile]);
|
|
2193
2193
|
const Wrapper = SectionWrapper || React.Fragment;
|
|
2194
2194
|
return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
|
|
2195
2195
|
theme: theme
|