diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-12-10 11:30:31 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-12-10 11:30:31 -0500 |
| commit | b960da50af564bfcb96e6897503431512d410398 (patch) | |
| tree | 9f82393e6c5f1117eb9be1ff3cd5d5a692317a68 | |
| parent | 6d3254977e1ab607089c9bb0ed7b56b5f2b38697 (diff) | |
| download | alure-website-b960da50af564bfcb96e6897503431512d410398.tar.gz alure-website-b960da50af564bfcb96e6897503431512d410398.tar.bz2 alure-website-b960da50af564bfcb96e6897503431512d410398.zip | |
Travel advisory update; Added an override
| -rw-r--r-- | app/travel-advisory/ListCountries.js | 6 | ||||
| -rw-r--r-- | app/travel-advisory/countries.json | 3 | ||||
| -rw-r--r-- | app/travel-advisory/page.js | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/app/travel-advisory/ListCountries.js b/app/travel-advisory/ListCountries.js index ac87814..35d7032 100644 --- a/app/travel-advisory/ListCountries.js +++ b/app/travel-advisory/ListCountries.js @@ -3,7 +3,11 @@ import countriesData from '@/app/travel-advisory/countries.json' assert { type: import HistoryModal from "@/app/travel-advisory/HistoryModal"; import { useState } from "react"; -export function getDangerLevel(danger) { +export function getDangerLevel(danger, override) { + if (danger === 0 && override !== undefined) { + danger = override; + } + let dangerLevel; switch (danger) { case 0: diff --git a/app/travel-advisory/countries.json b/app/travel-advisory/countries.json index cf4812e..d91e5f5 100644 --- a/app/travel-advisory/countries.json +++ b/app/travel-advisory/countries.json @@ -190,7 +190,8 @@ "image": "/countries/solstice.webp", "settlements": [], "history": [ - "December 10th, 2023: Potential risk for Kemonomimis as the government is planning on passing a law that would risk their lives." + "December 10th, 2023: Potential risk for Kemonomimis as the government is planning on passing a law that would risk their lives.", + "- Corruption within the government is rising." ] }, { diff --git a/app/travel-advisory/page.js b/app/travel-advisory/page.js index a9e94c0..9e13e36 100644 --- a/app/travel-advisory/page.js +++ b/app/travel-advisory/page.js @@ -20,7 +20,7 @@ export default async function TravelAdvisory(){ <li className="p-6 sm:px-40 px-10 bg-yellow-700"> <p className="font-medium text-lg">Exercise a high degree of caution</p> <p>There are certain safety and security concerns or the situation could change quickly. Be very cautious at all times, monitor local media and follow the instructions of local authorities.</p> - <p><b className="font-semibold"> IMPORTANT:</b> The two levels below are official Government of Alure Regions Travel Advisories and are issued when the safety and security of Alurians travelling or living in the country or region may be at risk.</p> + <p><b className="font-semibold">IMPORTANT:</b> The two levels below are official Government of Alure Regions Travel Advisories and are issued when the safety and security of Alurians travelling or living in the country or region may be at risk.</p> </li> <li className="p-6 sm:px-40 px-10 bg-orange-700"> <p className="font-medium text-lg">Avoid non-essential travel</p> |
