aboutsummaryrefslogtreecommitdiff
path: root/app/travel-advisory/HistoryModal.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2023-09-11 23:12:27 -0400
committerAndrew Lee <alee14498@protonmail.com>2023-09-11 23:12:27 -0400
commit7eb1b1d1d11c43119ee1f28e8ca185e3c3e3ae14 (patch)
treebf13769b918590f897b969a405a2df500b963560 /app/travel-advisory/HistoryModal.js
parent649b1d4328a7ffc31cb5e9d47e2b3ddefcc66f16 (diff)
downloadalure-website-7eb1b1d1d11c43119ee1f28e8ca185e3c3e3ae14.tar.gz
alure-website-7eb1b1d1d11c43119ee1f28e8ca185e3c3e3ae14.tar.bz2
alure-website-7eb1b1d1d11c43119ee1f28e8ca185e3c3e3ae14.zip
Travel Advisory and package update
Diffstat (limited to 'app/travel-advisory/HistoryModal.js')
-rw-r--r--app/travel-advisory/HistoryModal.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/app/travel-advisory/HistoryModal.js b/app/travel-advisory/HistoryModal.js
deleted file mode 100644
index 6449a6a..0000000
--- a/app/travel-advisory/HistoryModal.js
+++ /dev/null
@@ -1,40 +0,0 @@
-const HistoryModal = ({ isVisible, onClose, countries, dangerLevel, history }) => {
- if (!isVisible) return null;
- const handleClose = (e) => {
- if(e.target.id === 'wrapper') onClose();
- }
-
- let historyList;
- if (history && history.length > 0) {
- historyList = history.map((event, index) => {
- return (
- <li key={index}>{event}</li>
- )
- })
- } else {
- historyList = <li>Currently no diplomatic/medical issues in this country.</li>;
- }
-
- return (
- <div id="wrapper" className="fixed inset-0 bg bg-opacity-25 backdrop-blur-sm flex justify-center items-center" onClick={handleClose}>
- <div className="w-[700px]">
- <div className="flex flex-col">
- <div className="bg-zinc-800 p-5 rounded-lg border border-gray-700">
- <div className="divide-y space-y-3">
- <div>
- <h1 className="font-medium text-3xl">{countries}</h1>
- <h2 className="font-medium text-xl">{dangerLevel}</h2>
- </div>
- <div>
- <h1 className="font-medium text-2xl pt-3">History</h1>
- <ul>{historyList}</ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- )
-}
-
-export default HistoryModal;