SidebarMenu: useAccount hook
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user