Skip to content
Discussion options

You must be logged in to vote

This can be closed! I solved the issue by creating a function to handle background color and displaying the icon rather than the data and passed it in my columns as the accessor -- this solution only worked for me because I did not need to filter the data by my "Stat" column.

Function to handle changes:

function CarrierStat(sidebarResults) {
if (
sidebarResults.stat == "Carrier Claim" ||
sidebarResults.stat == "On Hold" ||
sidebarResults.stat == "Do Not Load" ||
sidebarResults.stat == "Authority Inactive" ||
sidebarResults.stat == "Authority Date" ||
sidebarResults.stat == "Out Of Service"
) {
return (
<div
onClick={() => testFunc(sidebarResults.stat)}
style={{ width: "100%", backgroundCo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jacob-crider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant