From 40b07329bd72092a70a1f6e28f589e9d2ac272ee Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Tue, 4 Oct 2022 16:42:17 -0700 Subject: [PATCH] Make follow & unfollow buttons same size --- web/components/groups/groups-button.tsx | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/web/components/groups/groups-button.tsx b/web/components/groups/groups-button.tsx index 5c9d2edd..814efd81 100644 --- a/web/components/groups/groups-button.tsx +++ b/web/components/groups/groups-button.tsx @@ -13,6 +13,7 @@ import { joinGroup, leaveGroup } from 'web/lib/firebase/groups' import { firebaseLogin } from 'web/lib/firebase/users' import { GroupLinkItem } from 'web/pages/groups' import toast from 'react-hot-toast' +import { Button } from '../button' export function GroupsButton(props: { user: User; className?: string }) { const { user, className } = props @@ -92,23 +93,22 @@ export function JoinOrLeaveGroupButton(props: { group: Group isMember: boolean user: User | undefined | null - small?: boolean className?: string }) { - const { group, small, className, isMember, user } = props - const smallStyle = - 'btn !btn-xs border-2 border-gray-500 bg-white normal-case text-gray-500 hover:border-gray-500 hover:bg-white hover:text-gray-500' + const { group, className, isMember, user } = props if (!user) { if (!group.anyoneCanJoin) return
Closed
return ( - + ) } const onJoinGroup = () => { @@ -124,27 +124,27 @@ export function JoinOrLeaveGroupButton(props: { if (isMember) { return ( - + ) } if (!group.anyoneCanJoin) return
Closed
return ( - + ) }