chore: remove useless code in Form (#45295)

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
AlanQtten 2023-10-24 16:05:45 +08:00 committed by GitHub
parent bc7853eb2d
commit 41fabbc0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ import type { Options } from 'scroll-into-view-if-needed';
import { ConfigContext } from '../config-provider';
import DisabledContext, { DisabledContextProvider } from '../config-provider/DisabledContext';
import type { SizeType } from '../config-provider/SizeContext';
import { SizeContextProvider } from '../config-provider/SizeContext';
import SizeContext from '../config-provider/SizeContext';
import useSize from '../config-provider/hooks/useSize';
import type { ColProps } from '../grid/col';
import type { FormContextProps } from './context';
@ -179,7 +179,7 @@ const InternalForm: React.ForwardRefRenderFunction<FormInstance, FormProps> = (p
return wrapSSR(
<DisabledContextProvider disabled={disabled}>
<SizeContextProvider size={mergedSize}>
<SizeContext.Provider value={mergedSize}>
<FormProvider
{...{
// This is not list in API, we pass with spread
@ -198,7 +198,7 @@ const InternalForm: React.ForwardRefRenderFunction<FormInstance, FormProps> = (p
/>
</FormContext.Provider>
</FormProvider>
</SizeContextProvider>
</SizeContext.Provider>
</DisabledContextProvider>,
);
};