Skip to content

Commit

Permalink
Fix missing colors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewda committed Aug 1, 2024
1 parent c6ef2a9 commit 99083df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pages/components/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useState } from "react";

const colorMap: Record<string, string> = {
'ILS': 'blue',
'RNAV': 'green',
'VOR': 'yellow',
'LOC': 'red',
'NDB': 'purple',
'GPS': 'indigo',
'LDA': 'pink',
'ILS': 'bg-blue-100',
'RNAV': 'bg-green-100',
'VOR': 'bg-yellow-100',
'LOC': 'bg-red-100',
'NDB': 'bg-purple-100',
'GPS': 'bg-indigo-100',
'LDA': 'bg-pink-100',
};

function ApproachBadge(props: any) {
Expand All @@ -18,7 +18,7 @@ function ApproachBadge(props: any) {
// split by space and dash
const type = approachName.split(/[\s-\/]/)[0];

const colorClass = `bg-${colorMap[type] ?? 'gray'}-100`;
const colorClass = colorMap[type] ?? 'bg-gray-100';

const badge = (
<span
Expand Down

0 comments on commit 99083df

Please sign in to comment.