From af31ce6bf8be303fa3fa88f371c0cf745b6f8161 Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Fri, 26 Apr 2024 20:42:05 -0500 Subject: [PATCH] remove like button & add wide Wave --- src/app/directory/[id]/page.tsx | 10 -------- src/components/ClubDocuments.tsx | 43 -------------------------------- src/components/DirectoryOrgs.tsx | 6 ----- src/components/LikeButton.tsx | 22 ---------------- src/components/OrgHeader.tsx | 15 +++++------ 5 files changed, 6 insertions(+), 90 deletions(-) delete mode 100644 src/components/ClubDocuments.tsx delete mode 100644 src/components/LikeButton.tsx diff --git a/src/app/directory/[id]/page.tsx b/src/app/directory/[id]/page.tsx index e603e5e9..51de93ad 100644 --- a/src/app/directory/[id]/page.tsx +++ b/src/app/directory/[id]/page.tsx @@ -1,10 +1,8 @@ -import ClubDocuments from '@src/components/ClubDocuments'; import Header from '@src/components/BaseHeader'; import OrgHeader from '@src/components/OrgHeader'; import OrgInfoSegment from '@src/components/OrgInfoSegment'; import OrgUpcomingEvents from '@src/components/OrgUpcomingEvents'; import { api } from '@src/trpc/server'; -import { PlusIcon } from '@src/icons/Icons'; import { db } from '@src/server/db'; import { eq } from 'drizzle-orm'; import { type Metadata } from 'next'; @@ -21,14 +19,6 @@ const OrganizationPage = async ({ params }: { params: { id: string } }) => { - -
-
Promo text
- -
); diff --git a/src/components/ClubDocuments.tsx b/src/components/ClubDocuments.tsx deleted file mode 100644 index e2c53a24..00000000 --- a/src/components/ClubDocuments.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import React, { type FC } from 'react'; - -const ClubDocuments: FC = () => { - return ( -
-

Club Documents

-

- Here you can find all the documents related to this club. You can view - them or download them. -

-
- {[ - 'Constitution', - 'Agreement', - 'Voting', - 'Random1', - 'Random2', - 'Random3', - ].map((documentName) => ( - - ))} -
-
- ); -}; - -const Document: FC<{ name: string }> = ({ name }) => { - return ( -
- {/* Document Icon empty div for now*/} -
-

{name}

-
-
- -
-
- ); -}; - -export default ClubDocuments; diff --git a/src/components/DirectoryOrgs.tsx b/src/components/DirectoryOrgs.tsx index 3d96c939..882b0410 100644 --- a/src/components/DirectoryOrgs.tsx +++ b/src/components/DirectoryOrgs.tsx @@ -2,7 +2,6 @@ import { type FC } from 'react'; import Image from 'next/image'; import type { SelectClub as Club } from '@src/server/db/models'; import JoinButton from './JoinButton'; -import LikeButton from './LikeButton'; import Link from 'next/link'; import { type Session } from 'next-auth'; @@ -25,11 +24,6 @@ const OrgDirectoryCards: FC = ({ club, session, priority }) => { priority={priority} className="select-none object-cover" /> -
- -

diff --git a/src/components/LikeButton.tsx b/src/components/LikeButton.tsx deleted file mode 100644 index e2ee3e2d..00000000 --- a/src/components/LikeButton.tsx +++ /dev/null @@ -1,22 +0,0 @@ -'use client'; -import { useState } from 'react'; -import { HeartIcon, HeartOutline } from '../icons/Icons'; - -const LikeButton = () => { - const [liked, setLiked] = useState(false); - return ( -
{ - setLiked(!liked); - }} - > - {liked ? ( - - ) : ( - - )} -
- ); -}; -export default LikeButton; diff --git a/src/components/OrgHeader.tsx b/src/components/OrgHeader.tsx index aa3cb227..4b17dcb0 100644 --- a/src/components/OrgHeader.tsx +++ b/src/components/OrgHeader.tsx @@ -6,7 +6,6 @@ import type { } from '@src/server/db/models'; import JoinButton from './JoinButton'; import { getServerAuthSession } from '@src/server/auth'; -import LikeButton from './LikeButton'; import Link from 'next/link'; import { api } from '@src/trpc/server'; @@ -21,10 +20,14 @@ const OrgHeader = async ({ club }: { club: Club }) => {
Picture of the club @@ -70,12 +73,6 @@ const OrgHeader = async ({ club }: { club: Club }) => { clubID={club.id} isJoined={memberType !== undefined} /> - )}