From 7eb1b1d1d11c43119ee1f28e8ca185e3c3e3ae14 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 11 Sep 2023 23:12:27 -0400 Subject: Travel Advisory and package update --- app/travel-advisory/HistoryModal.js | 40 ------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 app/travel-advisory/HistoryModal.js (limited to 'app/travel-advisory/HistoryModal.js') 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 ( -
  • {event}
  • - ) - }) - } else { - historyList =
  • Currently no diplomatic/medical issues in this country.
  • ; - } - - return ( -
    -
    -
    -
    -
    -
    -

    {countries}

    -

    {dangerLevel}

    -
    -
    -

    History

    -
      {historyList}
    -
    -
    -
    -
    -
    -
    - ) -} - -export default HistoryModal; -- cgit v1.2.3