sforkowany z mirror/soapbox
Fix tests
rodzic
3dceaacc16
commit
90fcc8ad05
|
@ -2,9 +2,12 @@ import classNames from 'clsx';
|
|||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import { HStack, Icon, Text } from 'soapbox/components/ui';
|
||||
import DropdownMenu from 'soapbox/containers/dropdown-menu-container';
|
||||
|
||||
import HStack from '../hstack/hstack';
|
||||
import Icon from '../icon/icon';
|
||||
import Text from '../text/text';
|
||||
|
||||
import type { Menu } from 'soapbox/components/dropdown-menu';
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import { useAppSelector } from 'soapbox/hooks';
|
||||
import { makeGetAccount } from 'soapbox/selectors';
|
||||
|
||||
export const useAccount = (id: string) => {
|
||||
const getAccount = makeGetAccount();
|
||||
|
||||
export const useAccount = (id: string) => useAppSelector((state) => getAccount(state, id));
|
||||
return useAppSelector((state) => getAccount(state, id));
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue