hi-tm 0.17.7 → 0.17.9
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.
|
@@ -136,8 +136,6 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
136
136
|
logoName: "",
|
|
137
137
|
subBranch: [],
|
|
138
138
|
});
|
|
139
|
-
console.log("branchNameSelected", branchNameSelected);
|
|
140
|
-
console.log("userBranchesData", userBranchesData);
|
|
141
139
|
const [expandSubBranch, setIsExpandSubBranch] = (0, react_1.useState)(false);
|
|
142
140
|
const modalCloseRefPC = (0, react_1.useRef)(null);
|
|
143
141
|
const modalCloseRefMobile = (0, react_1.useRef)(null);
|
|
@@ -149,7 +147,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
149
147
|
setIsOpenModal(!isOpenModal);
|
|
150
148
|
};
|
|
151
149
|
const handleModalShowBranches = () => {
|
|
152
|
-
if (userBranchesData !== undefined && userBranchesData.length >
|
|
150
|
+
if (userBranchesData !== undefined && userBranchesData.length > 1) {
|
|
153
151
|
setIsOpenModalBranches(!isOpenModalBranches);
|
|
154
152
|
}
|
|
155
153
|
};
|
|
@@ -217,6 +215,8 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
217
215
|
};
|
|
218
216
|
}, []);
|
|
219
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
220
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
221
221
|
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
222
|
react_1.default.createElement(link_1.default, { href: "/", className: "flex w-auto flex-row-reverse items-center justify-end" },
|
|
@@ -240,7 +240,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
240
240
|
react_1.default.createElement("p", { className: `${userBranchesData !== undefined && userBranchesData.length === 1
|
|
241
241
|
? "cursor-default"
|
|
242
242
|
: "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 &&
|
|
243
|
+
react_1.default.createElement(image_1.default, { src: iconsSRC.arrowSRC, alt: "arrow.svg", width: 16, height: 16, className: `customTransition ${userBranchesData !== undefined && userBranchesData.length === 1
|
|
244
244
|
? "hidden"
|
|
245
245
|
: isOpenModalBranches
|
|
246
246
|
? "flex rotate-180 cursor-pointer"
|