I would like to disable the (x) for chip. not the entire component, trying setting up the disabled will disable the entire component.
How can I do that ?
Based on Paven answer I've tried
import Chip from '@material-ui/core/Chip';
import CancelIcon from '@material-ui/icons/Cancel';
import FaceIcon from '@material-ui/icons/Face';
{agent.assignedBots.map(assignedBot => {
return (
<Chip
key={assignedBot.id}
icon={<FaceIcon />}
label={assignedBot.name}
onDelete={() =>
onRemoveBotHandler(agent.id, assignedBot.id)
}
color="secondary"
deleteIcon={
<CancelIcon
disabled={
(state.removedBot.id == assignedBot.id &&
state.removedBot.disabled) ||
assignedBot.isRunning
}
/>
}
/>
);
})}
but no luck.
