Skip to content

Commit

Permalink
Add loadout names to results table
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKoester committed Feb 2, 2024
1 parent ba41816 commit 3c335ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/results/ResultsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ const ResultsTable: React.FC = observer(() => {
<thead>
<tr>
<th aria-label="blank" className="bg-btns-400 border-r dark:bg-dark-500 select-none" />
{store.loadouts.map((_, i) => (
{store.loadouts.map(({ name }, i) => (
<th
// eslint-disable-next-line react/no-array-index-key
key={i}
className={`text-center w-28 border-r font-bold font-serif cursor-pointer transition-colors ${selectedLoadout === i ? 'bg-orange-400 dark:bg-orange-700' : 'bg-btns-400 dark:bg-dark-500'}`}
className={`text-center w-28 border-r font-bold font-serif leading-tight cursor-pointer transition-colors ${selectedLoadout === i ? 'bg-orange-400 dark:bg-orange-700' : 'bg-btns-400 dark:bg-dark-500'}`}
onClick={() => store.setSelectedLoadout(i)}
>
{i + 1}
{name}
</th>
))}
</tr>
Expand Down

0 comments on commit 3c335ab

Please sign in to comment.