diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-07-18 12:12:35 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-07-18 12:15:23 -0400 |
| commit | 3c80755e70aa85daa59edc5dbe200400894254c7 (patch) | |
| tree | 2f27b203b06dfbc68ab046bbf356a521e62ed0c8 /components/travel-advisory | |
| parent | f6cc64b3b36836ced50c2f7d089b52e9e329b666 (diff) | |
| download | alure-website-3c80755e70aa85daa59edc5dbe200400894254c7.tar.gz alure-website-3c80755e70aa85daa59edc5dbe200400894254c7.tar.bz2 alure-website-3c80755e70aa85daa59edc5dbe200400894254c7.zip | |
Added latest news; Some font changes; Some tweaks
Diffstat (limited to 'components/travel-advisory')
| -rw-r--r-- | components/travel-advisory/ListCountries.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/travel-advisory/ListCountries.js b/components/travel-advisory/ListCountries.js index 03665ef..078af5c 100644 --- a/components/travel-advisory/ListCountries.js +++ b/components/travel-advisory/ListCountries.js @@ -3,7 +3,7 @@ import countriesData from '@/app/travel-advisory/countries.json' assert { type: import HistoryModal from "@/components/travel-advisory/HistoryModal"; import { useState } from "react"; -function getDangerLevel(danger) { +export function getDangerLevel(danger) { let dangerLevel; switch (danger) { case 0: @@ -26,7 +26,7 @@ function getDangerLevel(danger) { return dangerLevel; } -export default function Countries(){ +export function Countries(){ // eslint-disable-next-line react-hooks/rules-of-hooks const [showModal, setShowModal] = useState(false); const [selectedCountry, setSelectedCountry] = useState(null); |
