try named export
This commit is contained in:
parent
60ef53aa81
commit
b463118d37
|
@ -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 = [
|
||||||
|
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue