File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
src/frontend/components/Standings/components/DriverRatingBadge Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export const Alien: Story = {
2424export 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 } />
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments