Skip to content

Commit 74133d1

Browse files
committed
fix: remove transfer warning #4574
1 parent f1488e1 commit 74133d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/transfer/index.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import Base from '../base';
1919
export const TransferDirection = 'left' | 'right';
2020

2121
export const TransferItem = {
22-
key: PropTypes.string.isRequired,
23-
title: PropTypes.string.isRequired,
22+
key: PropTypes.string,
23+
title: PropTypes.string,
2424
description: PropTypes.string,
2525
disabled: PropTypes.bool,
2626
};

components/transfer/list.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import addEventListener from '../vc-util/Dom/addEventListener';
1111
const defaultRender = () => null;
1212

1313
const TransferItem = {
14-
key: PropTypes.string.isRequired,
15-
title: PropTypes.string.isRequired,
14+
key: PropTypes.string,
15+
title: PropTypes.string,
1616
description: PropTypes.string,
1717
disabled: PropTypes.bool,
1818
};

0 commit comments

Comments
 (0)