diff --git a/.husky/_/pre-push b/.husky/_/pre-push index 16aae78..fb251ec 100755 --- a/.husky/_/pre-push +++ b/.husky/_/pre-push @@ -1,2 +1,24 @@ #!/usr/bin/env sh -. "$(dirname "$0")/h" \ No newline at end of file + +echo "Running pre-push checks..." >&2 + +echo "Linting..." >&2 + +yarn run lint >&2 +if [ $? -ne 0 ]; then + echo "[ACM DEV NOTE] Lint failed. Fix Linting Issues by running 'yarn run lint:fix'" >&2 + echo "[ACM DEV NOTE] Push aborted!" >&2 + exit 1 +fi + +echo "Prettier..." >&2 + +yarn run prettier +if [ $? -ne 0 ]; then + echo "[ACM DEV NOTE] Prettier failed. Fix Linting Issues by running 'yarn run prettier:fix'" >&2 + echo "[ACM DEV NOTE] Push aborted!" >&2 + exit 1 +fi + +echo "Pre-push checks passed. Proceeding with push." >&2 +exit 0 \ No newline at end of file diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index fb251ec..0000000 --- a/.husky/pre-push +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env sh - -echo "Running pre-push checks..." >&2 - -echo "Linting..." >&2 - -yarn run lint >&2 -if [ $? -ne 0 ]; then - echo "[ACM DEV NOTE] Lint failed. Fix Linting Issues by running 'yarn run lint:fix'" >&2 - echo "[ACM DEV NOTE] Push aborted!" >&2 - exit 1 -fi - -echo "Prettier..." >&2 - -yarn run prettier -if [ $? -ne 0 ]; then - echo "[ACM DEV NOTE] Prettier failed. Fix Linting Issues by running 'yarn run prettier:fix'" >&2 - echo "[ACM DEV NOTE] Push aborted!" >&2 - exit 1 -fi - -echo "Pre-push checks passed. Proceeding with push." >&2 -exit 0 \ No newline at end of file diff --git a/public/data/team.ts b/public/data/team.ts index e69ce78..1a79d99 100644 --- a/public/data/team.ts +++ b/public/data/team.ts @@ -123,6 +123,9 @@ export const OfficerTeam: TeamMember[] = [ classOf: "2027", picture: RitamSaha.src, }, +]; + +export const OtherTeamMembers: TeamMember[] = [ { name: "Aarush Narang", position: "ACM Web Dev Website Developer", diff --git a/src/app/team/page.tsx b/src/app/team/page.tsx index f3bca17..0d8210a 100644 --- a/src/app/team/page.tsx +++ b/src/app/team/page.tsx @@ -1,8 +1,9 @@ +import React from "react"; import Navbar from "@/components/shared/Navbar/Navbar"; import Footer from "@/components/shared/Footer/Footer"; import TeamCard from "@/components/team/Card/TeamCard"; import { Typography } from "@mui/material"; -import { OfficerTeam, Professors } from "@public/data/team"; +import { OfficerTeam, OtherTeamMembers, Professors } from "@public/data/team"; export default function Home() { return ( @@ -36,7 +37,7 @@ export default function Home() { Officers
- {OfficerTeam.map((officer) => ( + {[...OfficerTeam, ...OtherTeamMembers].map((officer) => ( ))}