Skip to content

Commit

Permalink
added type for connectionModal
Browse files Browse the repository at this point in the history
  • Loading branch information
Aamil13 committed Jul 19, 2024
1 parent a692cc8 commit 0f9f5aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Timeline/Modals/ConnectionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import UserListItem from '../UserListItem'
import { useGetUserFollow, useGetUserFollowers } from '@/services/connection'
import { useUniStore } from '@/store/store'
import UserListItemSkeleton from '@/components/Connections/UserListItemSkeleton'
import { FollowingItemProps } from '@/types/constants'

const ConnectionsModal = () => {
const [content, setContent] = useState<'Following' | 'Followers'>('Following')
Expand Down Expand Up @@ -40,7 +41,7 @@ const ConnectionsModal = () => {
<p className="text-center p-4">You are not Following anyone.</p>
) : (
content === 'Following' &&
userFollow?.profile?.map((item: any, index: number) => (
userFollow?.profile?.map((item: FollowingItemProps, index: number) => (
<UserListItem
key={index}
id={item?.users_id?.id}
Expand All @@ -67,7 +68,7 @@ const ConnectionsModal = () => {
<p className="text-center p-4">You have 0 Followers</p>
) : (
content === 'Followers' &&
userFollowers?.profile?.map((item: any, index: number) => (
userFollowers?.profile?.map((item: FollowingItemProps, index: number) => (
<UserListItem
key={index}
id={item?.users_id?.id}
Expand Down

0 comments on commit 0f9f5aa

Please sign in to comment.