SidebarMenu: useAccount hook

This commit is contained in:
Alex Gleason
2023-06-21 16:25:35 -05:00
parent e01ee84ee9
commit 69d8817b6d
2 changed files with 7 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ import { NavLink } from 'react-router-dom';
import { HStack, Text } from 'soapbox/components/ui';
import { shortNumberFormat } from 'soapbox/utils/numbers';
import type { Account } from 'soapbox/types/entities';
import type { Account } from 'soapbox/schemas';
const messages = defineMessages({
followers: { id: 'account.followers', defaultMessage: 'Followers' },
@@ -13,7 +13,7 @@ const messages = defineMessages({
});
interface IProfileStats {
account: Account | undefined
account: Pick<Account, 'acct' | 'followers_count' | 'following_count'> | undefined
onClickHandler?: React.MouseEventHandler
}