From 49c932a1029f73f1e4e3d51b3ad9c89dedb0d991 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Sun, 19 Mar 2023 16:13:04 +0800 Subject: [PATCH] chore: delete useless comment (#41327) --- components/transfer/index.tsx | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/components/transfer/index.tsx b/components/transfer/index.tsx index 6db4e74f51..030a328a1d 100644 --- a/components/transfer/index.tsx +++ b/components/transfer/index.tsx @@ -1,6 +1,10 @@ import classNames from 'classnames'; import type { ChangeEvent, CSSProperties } from 'react'; import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react'; +import type { InputStatus } from '../_util/statusUtils'; +import { getMergedStatus, getStatusClassNames } from '../_util/statusUtils'; +import { groupDisabledKeysMap, groupKeysMap } from '../_util/transKeys'; +import warning from '../_util/warning'; import type { ConfigConsumerProps } from '../config-provider'; import { ConfigContext } from '../config-provider'; import DefaultRenderEmpty from '../config-provider/defaultRenderEmpty'; @@ -8,10 +12,6 @@ import type { FormItemStatusContextProps } from '../form/context'; import { FormItemInputContext } from '../form/context'; import defaultLocale from '../locale/en_US'; import useLocale from '../locale/useLocale'; -import type { InputStatus } from '../_util/statusUtils'; -import { getMergedStatus, getStatusClassNames } from '../_util/statusUtils'; -import { groupDisabledKeysMap, groupKeysMap } from '../_util/transKeys'; -import warning from '../_util/warning'; import type { PaginationType } from './interface'; import type { TransferListProps } from './list'; import List from './list'; @@ -104,24 +104,6 @@ export interface TransferProps { status?: InputStatus; } -// interface TransferFCProps { -// prefixCls: string; -// className?: string; -// rootClassName?: string; -// style?: React.CSSProperties; -// children: React.ReactNode; -// } - -// const TransferFC: React.FC = (props) => { -// const { prefixCls, className, rootClassName, style, children } = props; -// const [wrapSSR, hashId] = useStyle(prefixCls); -// return wrapSSR( -//
-// {children} -//
, -// ); -// }; - const Transfer = ( props: TransferProps, ) => {