hi-tm 0.15.4 → 0.15.5

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,6 +136,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
136
136
  logoName: "",
137
137
  subBranch: [],
138
138
  });
139
+ const [expandSubBranch, setIsExpandSubBranch] = (0, react_1.useState)(false);
139
140
  const modalCloseRefPC = (0, react_1.useRef)(null);
140
141
  const modalCloseRefMobile = (0, react_1.useRef)(null);
141
142
  const modalCloseRefuserBranchesPC = (0, react_1.useRef)(null);
@@ -159,6 +160,7 @@ const HeaderLayout = ({ appVersion, branchName, userFirstName, sidebarHandler, u
159
160
  }
160
161
  }, [userBranchesData]);
161
162
  const selectItemBranchHandler = (branch) => {
163
+ setIsExpandSubBranch(true);
162
164
  if (userBranchesData !== undefined && userBranchesData.length > 1) {
163
165
  setBranchNameSelected(branch);
164
166
  selectBranchHandler(branch);
@@ -12,7 +12,7 @@ export interface HeaderLayoutProps {
12
12
  iconsSRC: iconsSRC;
13
13
  cdnURL: string | undefined;
14
14
  imageDefaultSRC: string;
15
- userBranchesData: userBranchesDataType[];
15
+ userBranchesData: userBranchesDataType[] | [];
16
16
  selectBranchHandler: (item: userBranchesDataType) => void | userBranchesDataType;
17
17
  sidebarData: SideBarItem[];
18
18
  searchIconSRC: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hi-tm",
3
- "version": "0.15.4",
3
+ "version": "0.15.5",
4
4
  "styles": "dist/styles/globals.css",
5
5
  "main": "dist/index.js",
6
6
  "exports": {