hi-tm 0.17.9 → 0.18.1
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.
|
@@ -147,7 +147,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
147
147
|
setIsOpenModal(!isOpenModal);
|
|
148
148
|
};
|
|
149
149
|
const handleModalShowBranches = () => {
|
|
150
|
-
if (userBranchesData !== undefined && userBranchesData.length >
|
|
150
|
+
if (userBranchesData !== undefined && userBranchesData.length > 0) {
|
|
151
151
|
setIsOpenModalBranches(!isOpenModalBranches);
|
|
152
152
|
}
|
|
153
153
|
};
|
|
@@ -215,8 +215,6 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
215
215
|
};
|
|
216
216
|
}, []);
|
|
217
217
|
const baseUrlCDN = cdnURL !== undefined ? cdnURL : process.env.NEXT_PUBLIC_IMAGE_BASE_URL;
|
|
218
|
-
console.log("branchNameSelected", branchNameSelected);
|
|
219
|
-
console.log("branchNameSelectedNameee", branchNameSelected.name);
|
|
220
218
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
221
219
|
react_1.default.createElement("header", { style: { zIndex: 100 }, className: "hidden h-[50px] w-full flex-row items-center justify-between bg-back-ground-color-primary p-1 xl:flex fixed top-0" },
|
|
222
220
|
react_1.default.createElement(link_1.default, { href: "/", className: "flex w-auto flex-row-reverse items-center justify-end" },
|
|
@@ -240,7 +238,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
240
238
|
react_1.default.createElement("p", { className: `${userBranchesData !== undefined && userBranchesData.length === 1
|
|
241
239
|
? "cursor-default"
|
|
242
240
|
: "cursor-pointer"}` }, branchNameSelected.name),
|
|
243
|
-
react_1.default.createElement(image_1.default, { src: iconsSRC.arrowSRC, alt: "arrow.svg", width: 16, height: 16, className: `customTransition ${userBranchesData !== undefined && userBranchesData.length ===
|
|
241
|
+
react_1.default.createElement(image_1.default, { src: iconsSRC.arrowSRC, alt: "arrow.svg", width: 16, height: 16, className: `customTransition ${userBranchesData !== undefined && userBranchesData[0].subBranch.length === 0
|
|
244
242
|
? "hidden"
|
|
245
243
|
: isOpenModalBranches
|
|
246
244
|
? "flex rotate-180 cursor-pointer"
|