From b7948e9fdd76720724a32f2c26ff3710167efaef Mon Sep 17 00:00:00 2001
From: nawed2611
Date: Sun, 9 Jul 2023 20:24:29 +0530
Subject: [PATCH] Update team
---
pages/team.js | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/pages/team.js b/pages/team.js
index 4e8e02e1..d2bb08a8 100644
--- a/pages/team.js
+++ b/pages/team.js
@@ -5,9 +5,9 @@ import Head from "next/head";
const Team = () => {
const [users, setUsers] = useState([]);
const getUsers = async (year) => {
+ let url = year == 2023 ? "https://opensheet.elk.sh/1D-7233yRtSKEGbCCNkw2YuXRW8qREviMxtsWZv1-c9E/1" : ("https://opensheet.elk.sh/1lbMJu8ZMBXcx66n0pkZI1eb8-fi8kBDQdwPoiIPPSRY/team" + year);
const response = await fetch(
- "https://opensheet.elk.sh/1lbMJu8ZMBXcx66n0pkZI1eb8-fi8kBDQdwPoiIPPSRY/team" +
- year
+ url
);
setUsers(await response.json());
};
@@ -15,7 +15,7 @@ const Team = () => {
useEffect(() => {
var customQuery = window.location.href.split("#")[1]; // Direct link to /team#20XX
// Note - Only change 2022 with current year of GSSoC
- customQuery ? getUsers(customQuery) : getUsers("2022");
+ customQuery ? getUsers(customQuery) : getUsers("2023");
}, []);
return (
@@ -37,12 +37,20 @@ const Team = () => {
Team
- 2023 Team will be announced soon!
+ 2023 Team is here to make your journey memorable!