Skip to content

Commit

Permalink
cleanup, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Aug 24, 2024
1 parent b394407 commit 3a61b7c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { useToast } from '@/components/ui/use-toast'
import { useEffect, useState } from 'react'
import { addFollow } from '@/utils/actions/community/addFollow'
import { removeFollow } from '@/utils/actions/community/removeFollow'
import { account } from '@/app/appwrite-client'
import { getIsFollowingCommunity } from '@/utils/server-api/community-followers/getIsFollowingCommunity'
import { getUser } from '@/utils/server-api/account/user'

export function FollowerButton({ userSelf, displayName, communityId }) {
const { toast } = useToast()
Expand Down
1 change: 0 additions & 1 deletion src/app/[locale]/(main)/users/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import PageLayout from '@/components/pageLayout'
import PageClient from './page.client'

export const runtime = 'edge'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ClientPage({
} finally {
setIsFetching(false)
}
}, [])
}, [user.$id])

useEffect(() => {
fetchUsers().then()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ClientPage({
} finally {
setIsFetching(false)
}
}, [])
}, [user.$id])

useEffect(() => {
fetchUsers().then()
Expand Down Expand Up @@ -77,10 +77,10 @@ export default function ClientPage({
<PageLayout title={`${user?.displayName}'s following`}>
<div className={'flex flex-1 justify-center items-center h-full'}>
<div className={'p-4 gap-6 text-center'}>
<h1 className={'text-2xl font-semibold'}>So lonely..</h1>
<h1 className={'text-2xl font-semibold'}>So quiet here...</h1>
<p className={'text-muted-foreground'}>
{user?.displayName} is not following anyone at the moment. You
could blackmail them into following you. Just a thought.
{user?.displayName} hasn&apos;t followed anyone yet. Maybe they
are just waiting for the perfect moment!
</p>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/components/header/header-resizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu'
Expand Down
1 change: 0 additions & 1 deletion src/components/header/header-server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import SidebarResizable from '@/components/header/header-resizable'
import MobileNav from '@/components/header/mobile-nav'
import { getUserDataSingle } from '@/utils/server-api/user/getUserData'
import { getUser } from '@/utils/server-api/account/user'
import { storage } from '@/app/appwrite-server'

export const dynamic = 'force-dynamic'

Expand Down
2 changes: 1 addition & 1 deletion src/utils/types/models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type AppwriteException, Models } from 'node-appwrite'
import { Models } from 'node-appwrite'

export namespace Account {
export interface AccountType extends Models.User<Models.Preferences> {}
Expand Down

0 comments on commit 3a61b7c

Please sign in to comment.