Open dashName opened 4 years ago
I am trying something like below but it updates all the row: const dataFormatter = (cell, row, rowIndex,formatExtraData) => { return (
<div style={{backgroundColor: '#fff', padding: '2px 5px',outline:'none'}}> {formatExtraData}</div> <div onClick={() => removeFromCart(rowIndex)}><img src={minus} style={{backgroundColor: '#2a4252'}}/></div> </div> ); };
I am trying something like below but it updates all the row: const dataFormatter = (cell, row, rowIndex,formatExtraData) => { return (