Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Jun 29, 2024
1 parent 4238f5e commit f36fe99
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ export function FollowerButton({
}

return (
<>
<Button onClick={isFollowingState ? handleUnfollow : handleFollow}>
{isFollowingState ? 'Unfollow' : 'Follow'}
</Button>
</>
<Button onClick={isFollowingState ? handleUnfollow : handleFollow}>
{isFollowingState ? 'Unfollow' : 'Follow'}
</Button>
)
}
10 changes: 6 additions & 4 deletions src/app/[locale]/(main)/community/[communityId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ export default async function Page({
className={'col-span-3 border-none md:col-span-1 lg:col-span-2'}
>
<CardHeader>
<div className={'grid grid-cols-2'}>
<div
className={'grid grid-cols-1 xl:grid-cols-2 gap-4 xl:gap-0'}
>
<CardTitle className={'col-span-1'}>
{community.name}
</CardTitle>
Expand All @@ -123,7 +125,7 @@ export default async function Page({
/>
</div>
<div className={'grid grid-cols-2'}>
<CardDescription>STATUS HERE</CardDescription>
<CardDescription>{community.status}</CardDescription>
</div>
<CardDescription className={'flex pt-4 gap-4'}>
<Link href={'#'}>
Expand All @@ -132,7 +134,7 @@ export default async function Page({
<span className={'font-bold text-foreground'}>
{followers.documents.length}
</span>{' '}
Following
Follower{followers.documents.length > 1 ? 's' : ''}
</p>
</Button>
</Link>{' '}
Expand All @@ -148,7 +150,7 @@ export default async function Page({
</CardContent>
</Card>
{/* Right */}
{/* Gallery here */}
{/* Posts here */}
</div>
</>
</main>
Expand Down
4 changes: 4 additions & 0 deletions src/utils/types/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ export namespace Community {
* The avatar ID of the community.
*/
avatarId: string
/**
* The status of the community.
*/
status: string
}

export interface CommunityFollowersType {
Expand Down

0 comments on commit f36fe99

Please sign in to comment.