Skip to content

Commit

Permalink
Merge pull request red-hat-storage#1401 from SanjalKatiyar/dr_dashboa…
Browse files Browse the repository at this point in the history
…rd_sdk_internal

Import 'useUserSettings' from stable sdk
  • Loading branch information
openshift-merge-bot[bot] authored May 22, 2024
2 parents 6314a69 + da48baf commit d59156f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ jest.mock('@openshift-console/dynamic-plugin-sdk', () => ({
...jest.requireActual('@openshift-console/dynamic-plugin-sdk'),
useFlag: jest.fn(() => true),
useK8sWatchResource: jest.fn(() => [['policy1', 'policy2'], true, '']),
AlertSeverity: { Critical: 'critical' },
}));

jest.mock('@openshift-console/dynamic-plugin-sdk-internal', () => ({
...jest.requireActual('@openshift-console/dynamic-plugin-sdk-internal'),
useUserSettings: jest.fn(() => [true, setIsOpen]),
AlertSeverity: { Critical: 'critical' },
}));

jest.mock('react-router-dom-v5-compat', () => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { GettingStartedExpandableGrid } from '@odf/shared/getting-started-grid';
import { DOC_VERSION as mcoDocVersion } from '@odf/shared/hooks';
import { useCustomTranslation } from '@odf/shared/useCustomTranslationHook';
import { useFlag } from '@openshift-console/dynamic-plugin-sdk';
import { useUserSettings } from '@openshift-console/dynamic-plugin-sdk-internal';
// ToDo (Sanjal): Update sdk (stable & internal) version and remove these comments
// @ts-ignore
import { useUserSettings } from '@openshift-console/dynamic-plugin-sdk';
import { HeaderSection, BodySection, gettingStartedSteps } from './helper';

export const GettingStartedCard: React.FC = () => {
Expand Down

0 comments on commit d59156f

Please sign in to comment.