2017-11-07 18:16:42 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* InputSearchLi
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import styles from './styles.scss';
|
|
|
|
|
|
|
|
function InputSearchLi({ item, onClickDelete }) {
|
|
|
|
return (
|
|
|
|
<li className={styles.li}>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
{item.name}
|
|
|
|
</div>
|
|
|
|
<div onClick={() => onClickDelete(item)}>
|
|
|
|
<i className="fa fa-minus-circle" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
InputSearchLi.defaultProps = {
|
|
|
|
item: {
|
|
|
|
name: '',
|
2017-11-08 16:06:21 +01:00
|
|
|
},
|
|
|
|
};
|
2017-11-07 18:16:42 +01:00
|
|
|
|
2017-11-08 16:06:21 +01:00
|
|
|
InputSearchLi.propTypes = {
|
2017-11-07 18:16:42 +01:00
|
|
|
item: PropTypes.object,
|
|
|
|
onClickDelete: PropTypes.func.isRequired,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default InputSearchLi;
|