@ctlyst.id/internal-ui 1.0.4-canary.7 → 1.0.4-canary.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/header/components/header.d.ts +1 -0
- package/dist/internal-ui.cjs.development.js +4 -2
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +6 -6
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +4 -2
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
@@ -1934,6 +1934,7 @@ const Header = ({
|
|
1934
1934
|
data,
|
1935
1935
|
onLogout,
|
1936
1936
|
onOpenModalRelease,
|
1937
|
+
hideSwitchMode,
|
1937
1938
|
...props
|
1938
1939
|
}) => /*#__PURE__*/React.createElement(react.Box, Object.assign({
|
1939
1940
|
minH: 14,
|
@@ -1954,14 +1955,15 @@ const Header = ({
|
|
1954
1955
|
onOpenModalRelease: onOpenModalRelease
|
1955
1956
|
})), /*#__PURE__*/React.createElement(react.Flex, {
|
1956
1957
|
alignItems: "center"
|
1957
|
-
}, /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
|
1958
|
+
}, !hideSwitchMode && /*#__PURE__*/React.createElement(SwitchMode, null), /*#__PURE__*/React.createElement(Profile, {
|
1958
1959
|
data: data,
|
1959
1960
|
onLogout: onLogout
|
1960
1961
|
}))));
|
1961
1962
|
Header.defaultProps = {
|
1962
1963
|
data: undefined,
|
1963
1964
|
onLogout: undefined,
|
1964
|
-
onOpenModalRelease: undefined
|
1965
|
+
onOpenModalRelease: undefined,
|
1966
|
+
hideSwitchMode: false
|
1965
1967
|
};
|
1966
1968
|
|
1967
1969
|
const ModalBody = /*#__PURE__*/React__default.forwardRef(({
|