Browse Source

chore: delete useless comment (#41327)

pull/41203/head
lijianan 2 years ago
committed by GitHub
parent
commit
49c932a102
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      components/transfer/index.tsx

26
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<RecordType> {
status?: InputStatus;
}
// interface TransferFCProps {
// prefixCls: string;
// className?: string;
// rootClassName?: string;
// style?: React.CSSProperties;
// children: React.ReactNode;
// }
// const TransferFC: React.FC<TransferFCProps> = (props) => {
// const { prefixCls, className, rootClassName, style, children } = props;
// const [wrapSSR, hashId] = useStyle(prefixCls);
// return wrapSSR(
// <div className={classNames(className, rootClassName, hashId)} style={style}>
// {children}
// </div>,
// );
// };
const Transfer = <RecordType extends TransferItem = TransferItem>(
props: TransferProps<RecordType>,
) => {

Loading…
Cancel
Save