@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)
|
|
@@ -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>;
|