Skip to content

Commit

Permalink
ZKUI-415: fix the import
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengYanJin committed Dec 1, 2023
1 parent 973a29f commit 6f39205
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions jestSetupAfterEnv.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@testing-library/jest-dom';
import fetch from 'node-fetch';
import { queryClient } from './src/react/utils/testUtil';
import { VEEAM_FEATURE } from './src/js/config';
import { VEEAM_FEATURE, XDM_FEATURE } from './src/js/config';

window.fetch = (url, ...rest) =>
fetch(/^https?:/.test(url) ? url : new URL(url, 'http://localhost'), ...rest);
Expand Down Expand Up @@ -44,7 +44,7 @@ jest.mock('./src/react/next-architecture/ui/ConfigProvider', () => {
iamEndpoint: TEST_API_BASE_URL,
navbarEndpoint: TEST_API_BASE_URL,
navbarConfigUrl: TEST_API_BASE_URL,
features: ['Veeam', 'XDM'],
features: [VEEAM_FEATURE, XDM_FEATURE],
basePath: '',
};
}),
Expand Down
14 changes: 2 additions & 12 deletions src/react/account/details/properties/AccountInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { useState } from 'react';
import type { Account } from '../../../../types/account';
import { notFalsyTypeGuard } from '../../../../types/typeGuards';
import { useManagementClient } from '../../../ManagementProvider';
import {
useAccountsLocationsAndEndpoints,
useListAccounts,
} from '../../../next-architecture/domain/business/accounts';
import { useAccountsLocationsAndEndpoints } from '../../../next-architecture/domain/business/accounts';
import { useAccountsLocationsEndpointsAdapter } from '../../../next-architecture/ui/AccountsLocationsEndpointsAdapterProvider';
import { useInstanceId } from '../../../next-architecture/ui/AuthProvider';
import { Clipboard } from '../../../ui-elements/Clipboard';
Expand All @@ -20,16 +17,9 @@ import DeleteConfirmation from '../../../ui-elements/DeleteConfirmation';
import * as T from '../../../ui-elements/TableKeyValue';
import Table, { TitleRow } from '../../../ui-elements/TableKeyValue';
import { formatDate } from '../../../utils';
import {
useAccounts,
useAuthGroups,
useRolePathName,
} from '../../../utils/hooks';
import { useAuthGroups, useRolePathName } from '../../../utils/hooks';
import { removeRoleArnStored } from '../../../utils/localStorage';
import SecretKeyModal from './SecretKeyModal';
import { useSetAssumedRole } from '../../../DataServiceRoleProvider';
import { useAccessibleAccountsAdapter } from '../../../next-architecture/ui/AccessibleAccountsAdapterProvider';
import { useMetricsAdapter } from '../../../next-architecture/ui/MetricsAdapterProvider';

const TableContainer = styled.div`
display: flex;
Expand Down

0 comments on commit 6f39205

Please sign in to comment.