From 90fcc8ad05f882c25bb3c74ed4a8a44bbe0d2136 Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Tue, 20 Dec 2022 17:45:29 -0500 Subject: [PATCH] Fix tests --- app/soapbox/components/ui/accordion/accordion.tsx | 5 ++++- app/soapbox/hooks/useAccount.ts | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/soapbox/components/ui/accordion/accordion.tsx b/app/soapbox/components/ui/accordion/accordion.tsx index 299848d84..c6a2e00d1 100644 --- a/app/soapbox/components/ui/accordion/accordion.tsx +++ b/app/soapbox/components/ui/accordion/accordion.tsx @@ -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({ diff --git a/app/soapbox/hooks/useAccount.ts b/app/soapbox/hooks/useAccount.ts index 471df571a..e8dfff152 100644 --- a/app/soapbox/hooks/useAccount.ts +++ b/app/soapbox/hooks/useAccount.ts @@ -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)); +};