Skip to content

Commit

Permalink
feat: Merged Third Year council
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jan 14, 2024
1 parent f32374f commit e3964de
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions src/pages/Contacts/CurrentOfficeBearers.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ export default function CurrentOfficeBearers() {
const VicePresident = contactsData.data.find(
(contact) => contact.Post === "Vice President"
);
const generalSecretaries = contactsData.data.filter(
(element) => element.Category === "General Secretary"
);
const nominatedPost = contactsData.data.filter(
(element) => element.Category === "Nominated"
const thirdYearCouncil = contactsData.data.filter(
(element) =>
element.Category === "General Secretary" ||
element.Category === "Nominated"
);
const secretaries = contactsData.data.filter(
(element) => element.Category === "Secretary"
Expand All @@ -27,7 +26,6 @@ export default function CurrentOfficeBearers() {
<>
<div className={Styles.contactsContainer}>
<div>
<h2 className={Styles.postHeading}>President</h2>
<div data-aos="zoom-in-up">
<ContactCard
name={President.Name}
Expand All @@ -41,7 +39,6 @@ export default function CurrentOfficeBearers() {
</div>

<div>
<h2 className={Styles.postHeading}>Honorary Treasurer</h2>
<div data-aos="zoom-in-up">
<ContactCard
name={HonoraryTreasurer.Name}
Expand All @@ -55,7 +52,6 @@ export default function CurrentOfficeBearers() {
</div>

<div>
<h2 className={Styles.postHeading}>Vice President</h2>
<div data-aos="zoom-in-up">
<ContactCard
name={VicePresident.Name}
Expand All @@ -69,29 +65,8 @@ export default function CurrentOfficeBearers() {
</div>

<div>
<h2 className={Styles.postHeading}>General Secretaries</h2>
<div className={Styles.multipleCards}>
{generalSecretaries.map((member, index) => {
return (
<div data-aos="zoom-in-up">
<ContactCard
name={member.Name}
designation={member.Post}
facebook={member.Facebook}
linkedin={member.LinkedIn}
email={member.Email}
imgSrc={`/data/media/images/contacts/${member.img}`}
/>
</div>
);
})}
</div>
</div>

<div>
<h2 className={Styles.postHeading}>Nominated Posts</h2>
<div className={Styles.multipleCards}>
{nominatedPost.map((member, index) => {
{thirdYearCouncil.map((member, index) => {
return (
<div data-aos="zoom-in-up">
<ContactCard
Expand Down

0 comments on commit e3964de

Please sign in to comment.