refactor(stacks): migrate create view to react [BE-6630] (#1538)

This commit is contained in:
Chaim Lev-Ari
2025-12-26 16:50:55 +02:00
committed by GitHub
parent 177da24e47
commit a1bac5a133
74 changed files with 2936 additions and 715 deletions
@@ -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))