Skip to content

Commit f3f3919

Browse files
committed
fix: remove transfer warning #4574
1 parent 30a5f68 commit f3f3919

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: components/transfer/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import { withInstall } from '../_util/type';
1515
export type TransferDirection = 'left' | 'right';
1616

1717
export const TransferItem = {
18-
key: PropTypes.string.isRequired,
19-
title: PropTypes.string.isRequired,
18+
key: PropTypes.string,
19+
title: PropTypes.string,
2020
description: PropTypes.string,
2121
disabled: PropTypes.looseBool,
2222
};

Diff for: components/transfer/list.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import type { RadioChangeEvent } from '../radio/interface';
1414
const defaultRender = () => null;
1515

1616
const TransferItem = {
17-
key: PropTypes.string.isRequired,
18-
title: PropTypes.string.isRequired,
17+
key: PropTypes.string,
18+
title: PropTypes.string,
1919
description: PropTypes.string,
2020
disabled: PropTypes.looseBool,
2121
};

0 commit comments

Comments
 (0)