diff --git a/django_project/minisass_frontend/src/components/Footer/index.tsx b/django_project/minisass_frontend/src/components/Footer/index.tsx index e098f45f..5608b5ae 100644 --- a/django_project/minisass_frontend/src/components/Footer/index.tsx +++ b/django_project/minisass_frontend/src/components/Footer/index.tsx @@ -1,20 +1,17 @@ -import React from "react"; +import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; import { HashLink } from 'react-router-hash-link'; - import { Img, Text } from "../../components"; import ContactFormModal from '../../components/ContactFormModal'; -import { useState } from 'react'; import { ContactFormData } from '../../components/ContactFormModal/types'; import { globalVariables } from "../../utils"; type FooterProps = React.DetailedHTMLProps< React.HTMLAttributes, HTMLDivElement -> & - Partial<{ - showLogo?: boolean; - }>; +> & Partial<{ + showLogo?: boolean; +}>; const Footer: React.FC = (props) => { const hideLogo = props.showLogo === false; @@ -44,75 +41,32 @@ const Footer: React.FC = (props) => {
{!hideLogo && <> -
- - Ground Truth - - - Unicef - - - CGIAR - - - IWMI - -
-
- - Water Research Commission - - - Wildlife and Environment Society of South Africa (WESSA) - - - Kartoza - - - uMngeni-uThukela - -
+
+ {["https://www.groundtruth.co.za", "https://www.unicef.org/", "https://www.cgiar.org", "https://www.iwmi.cgiar.org"].map((link, index) => ( + + Logo + + ))} +
+
+ {["https://www.wrc.org.za/", "https://wessa.org.za/", "https://kartoza.com/", "javascript:void(0);"].map((link, index) => ( + + Logo + + ))} +
} -
+
@@ -124,45 +78,27 @@ const Footer: React.FC = (props) => {
    -
  • - - - How to - - -
  • -
  • - navigate("/map")} - > - Map - -
  • -
  • - window.open('https://kartoza.github.io/miniSASS/', "_blank")} - > - Documentation - -
  • + {["/howto#howto-title", "/map", 'https://kartoza.github.io/miniSASS/'].map((link, index) => ( +
  • + + + {index === 0 ? "How to" : index === 1 ? "Map" : "Documentation"} + + +
  • + ))}
  • Contact us - - {/* ContactFormModal opens when isModalOpen is true */}
  • @@ -173,23 +109,18 @@ const Footer: React.FC = (props) => { riyoutubefill_One
- + © International Water Management Institute (IWMI) and UNICEF.
- -