@antscorp/antsomi-ui 1.3.5-beta.215 → 1.3.5-beta.216

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.
@@ -12,7 +12,7 @@ export const AccountSelection = props => {
12
12
  const { data: recentData } = useGetRecentAccount({ apiConfig });
13
13
  const [open, setOpen] = useState(false);
14
14
  const [searchValue, setSearchValue] = useState('');
15
- const currentAccountInfo = useMemo(() => data === null || data === void 0 ? void 0 : data.entries.find(account => account.userId === currentAccount), [data, currentAccount]);
15
+ const currentAccountInfo = useMemo(() => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.entries) === null || _a === void 0 ? void 0 : _a.find(account => account.userId === currentAccount); }, [data, currentAccount]);
16
16
  const handleSelectAccount = useCallback((userId) => {
17
17
  setOpen(false);
18
18
  if (onChange)
@@ -28,6 +28,7 @@ export interface HeaderV2Props {
28
28
  userId?: number;
29
29
  portalId?: number;
30
30
  token?: string;
31
+ appCode?: string;
31
32
  };
32
33
  }
33
34
  export declare const HeaderV2: React.FC<HeaderV2Props>;
@@ -4,6 +4,7 @@ import { envType } from '@antscorp/antsomi-ui/es/types/config';
4
4
  export interface AppConfigProviderProps {
5
5
  env?: envType;
6
6
  auth?: Omit<PayloadInfo, 'url'>;
7
+ appCode?: string;
7
8
  languageCode?: string;
8
9
  }
9
10
  declare const AppConfigContext: import("use-context-selector").Context<AppConfigProviderProps>;
@@ -27,7 +27,7 @@ export const accountService = {
27
27
  Token: token,
28
28
  },
29
29
  });
30
- return get(response, 'data.data', []);
30
+ return get(response, 'data.data', { entries: [] });
31
31
  }
32
32
  catch (error) {
33
33
  return Promise.reject(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.215",
3
+ "version": "1.3.5-beta.216",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",