From 54446a12cf8d8920e70c290286244f296dadc1a0 Mon Sep 17 00:00:00 2001 From: AswinAsok Date: Tue, 10 Oct 2023 19:07:23 +0530 Subject: [PATCH] fix(footer):removed-unwanted-links --- .../Pathway/components/contact/Contact.jsx | 131 +++++++++--------- 1 file changed, 65 insertions(+), 66 deletions(-) diff --git a/src/Pages/Pathway/components/contact/Contact.jsx b/src/Pages/Pathway/components/contact/Contact.jsx index 59bf16ab9..8b8bfdc7d 100644 --- a/src/Pages/Pathway/components/contact/Contact.jsx +++ b/src/Pages/Pathway/components/contact/Contact.jsx @@ -1,72 +1,71 @@ -import React from "react" -import styles from "./Contact.module.css" +import React from "react"; +import styles from "./Contact.module.css"; import img4 from "../../assets/img4.webp"; const links = [ - { - id: 1, - title: "Company", - l1: "Features", - l2: "Success Stories", - l3: "Our Story", - l4: "Careers", - l5: "Events", - }, - { - id: 2, - title: "Developers", - l1: "Documentation", - l2: "Tutorials", - l3: "Showcases", - }, - { - id: 3, - title: "About", - l1: "Legal & GDPR", - l2: "Equal opportunity employer", - l3: "Privacy policy", - l4: "Licensing", - l5: "Glossary", - }, - { - id: 4, - title: "Contact", - l1: "Pathway", - l2: "96bis Boulevard Raspail", - l3: "Agoranov", - l4: "75006 Paris", - l5: "France", - l6: "contact@pathway.com" - } -] + { + id: 1, + title: "About MuLearn", + l1: "Features", + l2: "Success Stories", + l3: "Our Story", + l4: "Careers", + l5: "Events", + }, +]; export default function Contact() { - return ( - <> -
-
- -
-
- { - links.map((link) => { - return ( -
-

{link.title}

- -
- ) - }) - } -
-
- - ) + return ( + <> +
+
+ +
+
+ {links.map((link) => { + return ( +
+

{link.title}

+
    + {link.l1 ? ( +
  • + {link.l1} +
  • + ) : null} + {link.l2 ? ( +
  • + {link.l2} +
  • + ) : null} + {link.l3 ? ( +
  • + {link.l3} +
  • + ) : null} + {link.l4 ? ( +
  • + {link.l4} +
  • + ) : null} + {link.l5 ? ( +
  • + {link.l5} +
  • + ) : null} + {link.l6 ? ( +
  • + {" "} + {link.l6}{" "} +
  • + ) : null} +
+
+ ); + })} +
+
+ + ); }