hi-tm 0.4.4 → 0.4.6
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.
|
@@ -158,6 +158,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
158
158
|
}
|
|
159
159
|
}, [userBranchesData]);
|
|
160
160
|
const selectItemBranchHandler = (branch) => {
|
|
161
|
+
console.log("branch", branch);
|
|
161
162
|
if (userBranchesData !== undefined && userBranchesData.length > 1) {
|
|
162
163
|
setBranchNameSelected(branch);
|
|
163
164
|
selectBranchHandler(branch);
|
|
@@ -242,11 +243,13 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
|
|
|
242
243
|
: "scale-y-0 opacity-0"} origin-top` },
|
|
243
244
|
react_1.default.createElement("ul", { className: "flex h-auto w-full flex-col items-start justify-center gap-3 bg-inherit p-3" }, userBranchesData &&
|
|
244
245
|
userBranchesData.map((item) => (react_1.default.createElement("li", { onClick: () => selectItemBranchHandler(item), key: item?.id, className: "customTransition flex w-full flex-row items-center justify-end gap-2 rounded-tiny px-5 py-2 text-text-color-primary hover:bg-gray-primary" },
|
|
245
|
-
react_1.default.createElement(
|
|
246
|
-
item.logoName ===
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
react_1.default.createElement("div", { className: "rounded-xl bg-cover bg-center w-16 h-16", style: {
|
|
247
|
+
backgroundImage: `url(${item.logoName === " " ||
|
|
248
|
+
item.logoName === null ||
|
|
249
|
+
item.logoName === undefined
|
|
250
|
+
? "/defaultImage.jpg"
|
|
251
|
+
: `${baseUrlCDN}/${branchName}/${item.logoName}`})`,
|
|
252
|
+
} }),
|
|
250
253
|
react_1.default.createElement("p", { className: "select-none-custom cursor-pointer text-nowrap text-sm font-normal text-text-color-primary" }, item.name))))))),
|
|
251
254
|
react_1.default.createElement("div", { ref: modalCloseRefPC, className: "flex h-full flex-row-reverse items-center justify-center gap-4" },
|
|
252
255
|
react_1.default.createElement("div", { onClick: handleModalShow, className: "border-primaryBorderColor relative flex cursor-pointer flex-row items-center justify-center gap-1 rounded-lg border border-solid p-tiny" },
|