diff --git a/packages/nicolium/src/components/accounts/account-link.tsx b/packages/nicolium/src/components/accounts/account-link.tsx index dcc8098a6..a9616d7dc 100644 --- a/packages/nicolium/src/components/accounts/account-link.tsx +++ b/packages/nicolium/src/components/accounts/account-link.tsx @@ -7,7 +7,7 @@ import { useLoggedIn } from '@/hooks/use-logged-in'; import type { Account, Mention } from 'pl-api'; interface IAccountLink extends React.AnchorHTMLAttributes { - account: Account | Mention; + account: Pick | Mention; } const AccountLink: React.FC = ({ account, ...props }) => { diff --git a/packages/nicolium/src/components/accounts/mention.tsx b/packages/nicolium/src/components/accounts/mention.tsx index 3facfcfd6..b68ba1e55 100644 --- a/packages/nicolium/src/components/accounts/mention.tsx +++ b/packages/nicolium/src/components/accounts/mention.tsx @@ -12,7 +12,7 @@ interface IMention { } /** Mention for display in the composer. */ -const Mention: React.FC = ({ mention: { acct, username }, disabled }) => { +const Mention: React.FC = ({ mention, disabled }) => { const handleClick: React.MouseEventHandler = (e) => { if (disabled) { e.preventDefault(); @@ -21,9 +21,9 @@ const Mention: React.FC = ({ mention: { acct, username }, disabled }) }; return ( - - - @{username} + + + @{mention.username} ); diff --git a/packages/nicolium/src/components/notification.tsx b/packages/nicolium/src/components/notification.tsx index 0dcae87f7..494525ffe 100644 --- a/packages/nicolium/src/components/notification.tsx +++ b/packages/nicolium/src/components/notification.tsx @@ -72,7 +72,7 @@ const notificationForScreenReader = (intl: IntlShape, message: string, timestamp }; const buildLink = ( - account: Pick, + account: Pick, ): React.JSX.Element => ( = defineMe const buildMessage = ( intl: IntlShape, type: NotificationType | 'reply', - accounts: Array>, + accounts: Array>, targetName: string, instanceTitle: string, hasStatus: boolean, diff --git a/packages/nicolium/src/features/chats/components/chats-page/components/chats-page-chat.tsx b/packages/nicolium/src/features/chats/components/chats-page/components/chats-page-chat.tsx index e6e1cb196..11aeb2d9c 100644 --- a/packages/nicolium/src/features/chats/components/chats-page/components/chats-page-chat.tsx +++ b/packages/nicolium/src/features/chats/components/chats-page/components/chats-page-chat.tsx @@ -2,6 +2,7 @@ import iconArrowLeft from '@phosphor-icons/core/regular/arrow-left.svg'; import iconInfo from '@phosphor-icons/core/regular/info.svg'; import iconProhibit from '@phosphor-icons/core/regular/prohibit.svg'; import iconSignOut from '@phosphor-icons/core/regular/sign-out.svg'; +import { useNavigate } from '@tanstack/react-router'; import React, { useRef } from 'react'; import { defineMessages, useIntl } from 'react-intl'; diff --git a/packages/nicolium/src/layouts/home-layout.tsx b/packages/nicolium/src/layouts/home-layout.tsx index d76e209e6..e5ac6007d 100644 --- a/packages/nicolium/src/layouts/home-layout.tsx +++ b/packages/nicolium/src/layouts/home-layout.tsx @@ -61,7 +61,7 @@ const HomeLayout = () => { >
{!disableUserProvidedMedia && ( - + { >
{users?.map((user) => ( - +
{ {user.acct}
-
+ ))}