Fix tests
This commit is contained in:
parent
3dceaacc16
commit
90fcc8ad05
2 changed files with 8 additions and 3 deletions
|
@ -2,9 +2,12 @@ import classNames from 'clsx';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { defineMessages, useIntl } from 'react-intl';
|
import { defineMessages, useIntl } from 'react-intl';
|
||||||
|
|
||||||
import { HStack, Icon, Text } from 'soapbox/components/ui';
|
|
||||||
import DropdownMenu from 'soapbox/containers/dropdown-menu-container';
|
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';
|
import type { Menu } from 'soapbox/components/dropdown-menu';
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import { useAppSelector } from 'soapbox/hooks';
|
import { useAppSelector } from 'soapbox/hooks';
|
||||||
import { makeGetAccount } from 'soapbox/selectors';
|
import { makeGetAccount } from 'soapbox/selectors';
|
||||||
|
|
||||||
|
export const useAccount = (id: string) => {
|
||||||
const getAccount = makeGetAccount();
|
const getAccount = makeGetAccount();
|
||||||
|
|
||||||
export const useAccount = (id: string) => useAppSelector((state) => getAccount(state, id));
|
return useAppSelector((state) => getAccount(state, id));
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue