From 2508aad29f6d99d4a9e499ad1d9cdd8669a9335e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Tue, 7 Apr 2026 19:55:32 +0000 Subject: [PATCH] nicolium: why would i run code before committing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../nicolium/src/components/accounts/account-link.tsx | 2 +- packages/nicolium/src/components/accounts/mention.tsx | 8 ++++---- packages/nicolium/src/components/notification.tsx | 4 ++-- .../components/chats-page/components/chats-page-chat.tsx | 1 + packages/nicolium/src/layouts/home-layout.tsx | 2 +- packages/nicolium/src/pages/fun/circle.tsx | 6 +++--- 6 files changed, 12 insertions(+), 11 deletions(-) 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}
-
+ ))}