mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 17:23:21 +03:00
Allow creating label without name
This commit is contained in:
@@ -43,7 +43,7 @@ const Item = React.memo(({
|
||||
});
|
||||
|
||||
Item.propTypes = {
|
||||
name: PropTypes.string.isRequired,
|
||||
name: PropTypes.string,
|
||||
color: PropTypes.string.isRequired,
|
||||
isPersisted: PropTypes.bool.isRequired,
|
||||
isActive: PropTypes.bool.isRequired,
|
||||
@@ -52,4 +52,8 @@ Item.propTypes = {
|
||||
onEdit: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
Item.defaultProps = {
|
||||
name: undefined,
|
||||
};
|
||||
|
||||
export default Item;
|
||||
|
||||
Reference in New Issue
Block a user