I'm looping through the days of the week from a database query something like this where 'node.club_night_day' is one day of the week:
{nights.edges.map(({ node }, index) => ( <div key={index}> <div className={clubNightsIcon+node.club_night_day}> <div>{node.club_night_name}</div> </div> </div> ))} CSS:
.club-nights-icon-wednesday { background: linear-gradient(180deg, #DE9FAE 0%, #E70F50 100%); } I want the definition for the class to be
clubNightsIconMonday
clubNightsIconTuesday
Is this possible in React? (I'm working with GatsbyJS)