refactor(stacks): migrate create view to react [BE-6630] (#1538)
This commit is contained in:
+1
-4
@@ -17,6 +17,7 @@ import { Stack } from '@/react/common/stacks/types';
|
||||
import { withUserProvider } from '@/react/test-utils/withUserProvider';
|
||||
import { useApiVersion } from '@/react/docker/proxy/queries/useVersion';
|
||||
import { http, server } from '@/setup-tests/server';
|
||||
import { DeepPartial } from '@/types';
|
||||
|
||||
import { StackRedeployGitForm } from './StackRedeployGitForm';
|
||||
|
||||
@@ -753,10 +754,6 @@ const defaultProps: StackRedeployGitFormProps = {
|
||||
} as Stack,
|
||||
};
|
||||
|
||||
type DeepPartial<T> = T extends object
|
||||
? { [K in keyof T]?: DeepPartial<T[K]> }
|
||||
: T;
|
||||
|
||||
function renderComponent(props: DeepPartial<StackRedeployGitFormProps> = {}) {
|
||||
const Component = withTestQueryProvider(
|
||||
withUserProvider(withTestRouter(StackRedeployGitForm))
|
||||
|
||||
Reference in New Issue
Block a user