Open danielnmai opened 1 year ago
I'm just wondering if it's possible to update the icon to a "checked" state after an item is checked (not the TickIcon). Something like this:
I tried to manipulate the entire item list from setItems() with onSelectItem() but it does not work.
setItems()
onSelectItem()
const onSelectItem = item => { const selectedJobTypes = JOB_TYPES.map(type => ({ label: type.label, value: type.value, icon: value.includes(type.value) ? <CheckedBox /> : <UncheckedBox />, })); setItems(selectedJobTypes); };
I'm just wondering if it's possible to update the icon to a "checked" state after an item is checked (not the TickIcon). Something like this:
I tried to manipulate the entire item list from
setItems()
withonSelectItem()
but it does not work.