-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
298 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// @flow | ||
|
||
import * as React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
type Props = { | ||
race: { | ||
precipChance: number, | ||
}, | ||
}; | ||
|
||
export default function Rain({ race }: Props) { | ||
const { t } = useTranslation(); | ||
let rainText = t('No'); | ||
if (race.precipChance === 100) { | ||
rainText = t('Yes'); | ||
} | ||
if (race.precipChance > 0) { | ||
rainText = t('Chance'); | ||
} | ||
return ( | ||
<td> | ||
<div> | ||
{rainText} | ||
</div> | ||
</td> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1 @@ | ||
export default { | ||
2550: { | ||
carByWeek: [ | ||
[10009], // 1 Skip Barber Formula 2000 | ||
[10567], // 2 Audi R8 LMS EVO II GT3 | ||
[10516], // 3 Hyundai Elantra N TC | ||
[10232], // 4 Street Stock | ||
[10484], // 5 Chevrolet Corvette C8.R GTE | ||
[10497], // 6 McLaren 570S GT4 | ||
[10011], // 7 Pontiac Solstice | ||
[10040], // 8 Radical SR8 | ||
[10552], // 9 Ligier JS P320 | ||
[10006], // 10 [Legacy] Pro Mazda | ||
[10473], // 11 Porsche 718 Cayman GT4 Clubsport MR | ||
[10495], // 12 Lamborghini Huracán GT3 EVO | ||
], | ||
carClassShortNameByWeek: [ | ||
['SBRS'], // 1 Skip Barber Formula 2000 | ||
['Audi R8 EVO2 GT3'], // 2 Audi R8 LMS EVO II GT3 | ||
['Elantra N TC'], // 3 Hyundai Elantra N TC | ||
['Street Stock'], // 4 Street Stock | ||
['Vette C8.R GTE'], // 5 Chevrolet Corvette C8.R GTE | ||
['McLaren 570S GT4'], // 6 McLaren 570S GT4 | ||
['Solstice'], // 7 Pontiac Solstice | ||
['SR8'], // 8 Radical SR8 | ||
['Ligier JS P320'], // 9 Ligier JS P320 | ||
['Pro Mazda'], // 10 [Legacy] Pro Mazda | ||
['Porsche 718'], // 11 Porsche 718 Cayman GT4 Clubsport MR | ||
['Lambo Huracán'], // 12 Lamborghini Huracán GT3 EVO | ||
], | ||
}, | ||
}; | ||
export default {}; |
Oops, something went wrong.