From a2dae06969c9141456b6ea8d868bcb5a9c30a469 Mon Sep 17 00:00:00 2001 From: Paul Peria Date: Thu, 19 Dec 2019 02:59:43 +0800 Subject: [PATCH] added option to replace delete icon --- index.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 7dd8203..fb1b582 100644 --- a/index.js +++ b/index.js @@ -118,6 +118,7 @@ class Tags extends React.Component { tagsViewStyle, updateState, keysForTag, + deleteElement, deleteIconStyles, customElement, } = this.props; @@ -156,10 +157,12 @@ class Tags extends React.Component { > {item} this.deleteTag(count, tags, updateState) }> - + {deleteElement ? deleteElement : ( + + )} ) @@ -256,4 +259,4 @@ const styles = { } }; -export default Tags; \ No newline at end of file +export default Tags;