I have a situation where I have to change background color of rows depending upon row props. I am currently doing this:
const getTrProps = (state, rowInfo, instance) => {
        if (rowInfo) {
            return {
                style: {
                    'background-color': rowInfo.original.customercomplaints.order_ref === currentOrderId ? '' : 'yellow',
                }
            }
        }
        return {};
    }
In react-table, it is like this:
<ReactTableFixedColumns className="-striped"
      columns={customerComplaintsColumns}
      data={customerComplaintsData}
      daultPageSize={10}
      defaultFilterMethod={filterCaseInsensitive}
      getTrProps={getTrProps}
      />
If I inspect the element, I do get this:
<div class="rt-tr -even" role="row" style="background-color: yellow;">
but it doesn't apply on the row. How can I resolve this?
My react version is ^16.13.1 and react-table version is 6.8.6.