@salesgenterp/ui-components 0.4.122 → 0.4.124
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/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4913,8 +4913,8 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4913
4913
|
secondaryColor = _ref.secondaryColor,
|
|
4914
4914
|
backgroundColor = _ref.backgroundColor,
|
|
4915
4915
|
fontColor = _ref.fontColor,
|
|
4916
|
-
|
|
4917
|
-
darkMode = _ref
|
|
4916
|
+
backgroundImage = _ref.backgroundImage,
|
|
4917
|
+
darkMode = _ref.darkMode,
|
|
4918
4918
|
onChangeColors = _ref.onChangeColors;
|
|
4919
4919
|
var serviceApiEndPoint = 'https://dev.salesgent.xyz/api'.replace('/api', '/services/pdf');
|
|
4920
4920
|
var isMobile = useMediaQuery('(max-width:800px)');
|
|
@@ -4952,12 +4952,12 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4952
4952
|
fontColor: fontColor || '#fff',
|
|
4953
4953
|
backgroundImage: backgroundImage || '/images/backgroundDark.png'
|
|
4954
4954
|
});
|
|
4955
|
-
onChangeColors && onChangeColors(_extends({}, colors, {
|
|
4956
|
-
isNightMode: isNightMode
|
|
4957
|
-
}));
|
|
4958
4955
|
setIsNightMode(function (prev) {
|
|
4959
4956
|
return !prev;
|
|
4960
4957
|
});
|
|
4958
|
+
onChangeColors && onChangeColors(_extends({}, colors, {
|
|
4959
|
+
isNightMode: isNightMode
|
|
4960
|
+
}));
|
|
4961
4961
|
};
|
|
4962
4962
|
React.useEffect(function () {
|
|
4963
4963
|
isMobile ? setOpen(false) : setOpen(true);
|