Skip to content

Commit

Permalink
add color to text
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali7040 committed Jun 27, 2023
1 parent 849f33a commit f1f9e8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ui/DTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ const Row = ({ rowHeader, beginner, intermediate, advanced, expert, total, myRan
return (
<tr className='text-tertiary text-xs my-2'>
<th scope='row' className='py-0.5 pr-2 text-right'>{rowHeader}</th>
<td className={`${highlighted ? 'dtable-highlight' : ''} ${highlighted && isInMyRange(0, myRange) ? 'dtable-my-range' : ''}`}>{beginner}</td>
<td className={`${highlighted ? 'dtable-highlight' : ''} ${highlighted && isInMyRange(1, myRange) ? 'dtable-my-range' : ''}`}>{intermediate}</td>
<td className={`${highlighted ? 'dtable-highlight' : ''} ${highlighted && isInMyRange(2, myRange) ? 'dtable-my-range' : ''}`}>{advanced}</td>
<td className={`${highlighted ? 'dtable-highlight' : ''} ${highlighted && isInMyRange(3, myRange) ? 'dtable-my-range' : ''}`}>{expert}</td>
<td className={`${highlighted ? 'text-base-content' : ''} ${highlighted && isInMyRange(0, myRange) ? 'dtable-my-range' : ''}`}>{beginner}</td>
<td className={`${highlighted ? 'text-base-content' : ''} ${highlighted && isInMyRange(1, myRange) ? 'dtable-my-range' : ''}`}>{intermediate}</td>
<td className={`${highlighted ? 'text-base-content' : ''} ${highlighted && isInMyRange(2, myRange) ? 'dtable-my-range' : ''}`}>{advanced}</td>
<td className={`${highlighted ? 'text-base-content' : ''} ${highlighted && isInMyRange(3, myRange) ? 'dtable-my-range' : ''}`}>{expert}</td>
</tr>
)
}
Expand Down

0 comments on commit f1f9e8b

Please sign in to comment.