Skip to content

Commit 9d73cd8

Browse files
committed
add purple licence badge
1 parent 65dd8b5 commit 9d73cd8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/frontend/components/Standings/components/DriverRatingBadge/DriverRatingBadge.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const Alien: Story = {
2424
export const AllRatings: Story = {
2525
render: () => (
2626
<div className="flex flex-col gap-1">
27+
<DriverRatingBadge license="P 4.99" rating={12999} />
2728
<DriverRatingBadge license="A 4.99" rating={4999} />
2829
<DriverRatingBadge license="B 3.99" rating={3999} />
2930
<DriverRatingBadge license="C 2.99" rating={2999} />

src/frontend/components/Standings/components/DriverRatingBadge/DriverRatingBadge.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const DriverRatingBadge = ({
99
}: DriverRatingBadgeProps) => {
1010
const licenseLevel = license?.charAt(0) || 'R';
1111
const colorMap: Record<string, string> = {
12+
P: 'border-purple-500 bg-purple-800',
1213
A: 'border-blue-500 bg-blue-800',
1314
B: 'border-green-500 bg-green-800',
1415
C: 'border-yellow-500 bg-yellow-700',

0 commit comments

Comments
 (0)