diff --git a/src/components/Inbox/DialogCard.tsx b/src/components/Inbox/DialogCard.tsx index 5d19919e..e921ba45 100644 --- a/src/components/Inbox/DialogCard.tsx +++ b/src/components/Inbox/DialogCard.tsx @@ -1,6 +1,6 @@ import styles from './DialogCard.module.scss' import DialogAvatar from './DialogAvatar' -import type { Author, User } from '../../graphql/types.gen' +import type { Author, Chat, User } from '../../graphql/types.gen' import { apiClient } from '../../utils/apiClient' import { t } from '../../utils/intl' import { useInbox } from '../../context/inbox' @@ -9,21 +9,22 @@ type DialogProps = { online?: boolean message?: string counter?: number - users: User[] - ownSlug: User['slug'] + users: unknown[] + ownSlug: string } const DialogCard = (props: DialogProps) => { - // @ts-ignore - const participants = props.users.filter((user) => user !== props.ownSlug) - console.log('!!! participants:', participants) - // @ts-ignore + const companions = props.users.filter((user) => user !== props.ownSlug) + console.log('!!! companions:', companions) return ( - //DialogCardView - подумать