1
Fork 0

try named export

This commit is contained in:
Konstantin Koval 2024-06-11 13:20:16 +03:00
parent 60ef53aa81
commit b463118d37
3 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ const MockSubscriptionsHook = ({ messages, setMessages }: any) => {
vi.mock('./SubscriptionsHook', () => ({ vi.mock('./SubscriptionsHook', () => ({
__esModule: true, __esModule: true,
default: MockSubscriptionsHook, SubscriptionsHook: MockSubscriptionsHook,
})) }))
const messages = [ const messages = [

View File

@ -3,7 +3,7 @@ import styled from 'styled-components'
import { authToken } from '../../helpers/authentication' import { authToken } from '../../helpers/authentication'
import MessageProgress from './MessageProgress' import MessageProgress from './MessageProgress'
import MessagePlain from './Message' import MessagePlain from './Message'
import SubscriptionsHook, { Message } from './SubscriptionsHook' import { SubscriptionsHook, Message } from './SubscriptionsHook'
import { NotificationType } from '../../__generated__/globalTypes' import { NotificationType } from '../../__generated__/globalTypes'
import MessageState from './MessageState' import MessageState from './MessageState'

View File

@ -40,7 +40,7 @@ type SubscriptionHookProps = {
setMessages: React.Dispatch<React.SetStateAction<Message[]>> setMessages: React.Dispatch<React.SetStateAction<Message[]>>
} }
const SubscriptionsHook = ({ export const SubscriptionsHook = ({
messages, messages,
setMessages, setMessages,
}: SubscriptionHookProps) => { }: SubscriptionHookProps) => {