From be8f4dc2a444080642cfce01b7167f76cd3b1f94 Mon Sep 17 00:00:00 2001 From: kene17 <55929273+kene17@users.noreply.github.com> Date: Thu, 8 Apr 2021 17:25:21 -0400 Subject: [PATCH] Update Agents.js --- src/agent-page/Agents.js | 128 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 118 insertions(+), 10 deletions(-) diff --git a/src/agent-page/Agents.js b/src/agent-page/Agents.js index cc9e9fe..d1e5343 100644 --- a/src/agent-page/Agents.js +++ b/src/agent-page/Agents.js @@ -4,22 +4,32 @@ import Card from "react-bootstrap/Card"; import {Link} from 'react-router-dom' /* import Button from "react-bootstrap/Button"; */ import { useTranslation } from 'react-i18next'; +import './agent-page.css'; +import Agent1 from "../images/Agent1.jpg"; +import Agent2 from "../images/Agent2.jpg"; +import Agent3 from "../images/Agent3.jpg"; +import Agent4 from "../images/Agent4.jpg"; +import Agent5 from "../images/Agent5.jpg"; +import Agent6 from "../images/Agent6.jpg"; +import { withTranslation } from "react-i18next"; +import { Container, Row, Col } from 'reactstrap'; const Agents = ({ agents }) => { const { t } = useTranslation(); - const agentlist = agents.map((agent) => { + /* const agentlist = agents.map((agent) => { */ return ( -
+
{} + - + - {agent.title} - {agent.name} + {t("Mike.Title")} + Michael - {agent.word} + {t("Mike.Word")}
*/} + + + + {t("Regular")} + Jin + + {t("Agent2.W")} + + + + + {/*
+ +
*/} +
+
+ + + + + + {t("Regular")} + Anita + + {t("Agent3.W")} + + + + + {/*
+ +
*/} +
+
+ + + + + + {t("Regular")} + Alex + + {t("Agent4.W")} + + + + + {/*
+ +
*/} +
+
+ + + + + {t("Regular")} + Xuan + + {t("Agent5.W")} + + + + + {/*
+ +
*/} +
+
+ + + + {t("Regular")} + Walter + + {t("Agent6.W")} + + + + + {/*
+ +
*/} +
+
+
+ +
); - }); - console.log(agentlist); - return ( + /* }); */ + /* console.log(agentlist); */ + /* return (
{agentlist[0]}
@@ -46,6 +154,6 @@ const Agents = ({ agents }) => {
{agentlist[5]}
- ); + ); */ }; export default Agents;