diff --git a/web/src/components/Dashboard/DashboardCommunity/CommunityGallery.tsx b/web/src/components/Dashboard/DashboardCommunity/CommunityGallery.tsx index c6ce8db..88c13cf 100644 --- a/web/src/components/Dashboard/DashboardCommunity/CommunityGallery.tsx +++ b/web/src/components/Dashboard/DashboardCommunity/CommunityGallery.tsx @@ -44,7 +44,7 @@ const CommunityGallery = () => { const appUrl = import.meta.env.VITE_APP_URL; const port = import.meta.env.VITE_APP_PORT; axios - .get(`${appUrl}:${port}/api/homepage/gallery`) + .get(`${appUrl}:${port}/api/users`) .then((res) => { setData(res.data); }) diff --git a/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryCard.tsx b/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryCard.tsx index 52882e3..e9545eb 100644 --- a/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryCard.tsx +++ b/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryCard.tsx @@ -36,31 +36,31 @@ const CommunityGalleryCard = ({user}: CommunityGalleryCardProps) => { } return ( -
-
- +
+
+
-
- +
+ profile
-

{user.firstName + " " + user.lastName}

-

{user.hours}

-

hours

+

{user.firstName + " " + user.lastName}

+

{user.hours}

+

hours

{/* this should be the profile picture of the mutual, but for now just uses the user's img */}
{/* THIS DOES NOT HANDLE MUTUALS, IDK HOW WE ARE GONNA DO THAT SO I HAVENT MADE PROPS FOR THE BELOW STUFF */} -

jaquallelina and 12 other mutual friends

+

jaquallelina and 12 other mutual friends

-
diff --git a/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryWhole.tsx b/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryWhole.tsx index 01d2076..93176ad 100644 --- a/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryWhole.tsx +++ b/web/src/components/Dashboard/DashboardCommunity/CommunityGalleryWhole.tsx @@ -11,48 +11,44 @@ interface EventData { const CommunityGalleryWhole = () => { // TEMPORARY DATA passing down events into community gallery vvvvvvvvvvvvvvvvvvvvvvvvvvvvv - const [data, setData] = useState([ - { - title: "Quiz Night", - location: "Uni", - }, - { - title: "Launch Night", - location: "Somewhere", - }, - { - title: "C", - location: "Somewhere", - }, - { - title: "Beach Cleanup", - location: "Beach", - }, - ]); + // const [data, setData] = useState([ + // { + // title: "Quiz Night", + // location: "Uni", + // }, + // { + // title: "Launch Night", + // location: "Somewhere", + // }, + // { + // title: "C", + // location: "Somewhere", + // }, + // { + // title: "Beach Cleanup", + // location: "Beach", + // }, + // ]); - useEffect(() => { - // Fetch gallery data - const appUrl = import.meta.env.VITE_APP_URL; - const port = import.meta.env.VITE_APP_PORT; - axios - .get(`${appUrl}:${port}/api/homepage/highlights`) - .then((res) => { - setData(res.data); - }) - .catch((err) => { - console.log(err); - }); - }, []); + // useEffect(() => { + // // Fetch gallery data + // const appUrl = import.meta.env.VITE_APP_URL; + // const port = import.meta.env.VITE_APP_PORT; + // axios + // .get(`${appUrl}:${port}/api/homepage/highlights`) + // .then((res) => { + // setData(res.data); + // }) + // .catch((err) => { + // console.log(err); + // }); + // }, []); // TEMPORARY ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return (
{/* passing event data into community gallery*/} - {data.map((event) => ( -
- -
- ))} +
); };