Skip to content

Commit

Permalink
Merge pull request #3 from tcet-opensource/master
Browse files Browse the repository at this point in the history
done
  • Loading branch information
AI-ApeX-DeV authored Oct 4, 2023
2 parents a0ec085 + 7596c6f commit fe18cf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
24 changes: 4 additions & 20 deletions src/components/Team.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useState } from "react";
import React from "react";
import { motion } from "framer-motion";
import linkedinurl from "/linkedin.png"

import { styles } from "../styles";
import { SectionWrapper } from "../hoc";
import { fadeIn, textVariant } from "../utils/motion";
import { teammembers as currentTeamMembers, newTeammembers } from "../constants";
import { teammembers } from "../constants";

const TeamMemberCard = ({
index,
Expand Down Expand Up @@ -56,14 +56,6 @@ const TeamMemberCard = ({
);

const Team = () => {
const [showNewTeam, setShowNewTeam] = useState(false);

const toggleTeamMembers = () => {
setShowNewTeam(!showNewTeam);
};

const teamMembersToShow = showNewTeam ? newTeammembers : currentTeamMembers;

return (
<div className={`mt-12 bg-black-100 rounded-[20px]`}>
<div
Expand All @@ -75,18 +67,10 @@ const Team = () => {
</motion.div>
</div>
<div className={`-mt-20 pb-14 ${styles.paddingX} flex flex-wrap gap-7 justify-center`}>
{teamMembersToShow.map((teamMember, index) => (
<TeamMemberCard key={teamMember.name} index={index} {...teamMember} />
{teammembers.map((testimonial, index) => (
<TeamMemberCard key={testimonial.name} index={index} {...testimonial} />
))}
</div>
<div className="text-center">
<button
className="text-primary text-lg underline cursor-pointer"
onClick={toggleTeamMembers}
>
{showNewTeam ? "Show Current Team" : "Show New Team"}
</button>
</div>
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const services = [
const teammembers = [
{
name: "Kunal Agrawal",
designation: "President...",
designation: "President..",
image: "team-member1.jpg",
linkedin: "https://www.linkedin.com/in/kunalragrawal/",
},
Expand Down

0 comments on commit fe18cf9

Please sign in to comment.