tajwal
Chewbacca 2022-12-20 17:45:29 -05:00
rodzic 3dceaacc16
commit 90fcc8ad05
2 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -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({

Wyświetl plik

@ -1,6 +1,8 @@
import { useAppSelector } from 'soapbox/hooks';
import { makeGetAccount } from 'soapbox/selectors';
const getAccount = makeGetAccount();
export const useAccount = (id: string) => {
const getAccount = makeGetAccount();
export const useAccount = (id: string) => useAppSelector((state) => getAccount(state, id));
return useAppSelector((state) => getAccount(state, id));
};