From 480833c3f61193ecc2532d89bf24778d70c76bfd Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Wed, 15 Jun 2022 16:06:59 +0200 Subject: [PATCH] fix: protocol exports --- packages/status-react/src/protocol/index.tsx | 2 ++ packages/status-react/src/protocol/use-account.tsx | 4 ++++ .../src/routes/chat/components/chat-message/actions.tsx | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/status-react/src/protocol/index.tsx b/packages/status-react/src/protocol/index.tsx index bb4a5527..3bc9445d 100644 --- a/packages/status-react/src/protocol/index.tsx +++ b/packages/status-react/src/protocol/index.tsx @@ -6,3 +6,5 @@ export { useChat } from './use-chat' export { useChats } from './use-chats' export type { Member } from './use-members' export { useMembers } from './use-members' +export type { Message, Reaction, Reactions } from './use-messages' +export { useMessages } from './use-messages' diff --git a/packages/status-react/src/protocol/use-account.tsx b/packages/status-react/src/protocol/use-account.tsx index 161690a1..6c810508 100644 --- a/packages/status-react/src/protocol/use-account.tsx +++ b/packages/status-react/src/protocol/use-account.tsx @@ -1,5 +1,7 @@ import { useProtocol } from './provider' +import type { Account } from '@status-im/js' + export const useAccount = () => { const { client, account, dispatch } = useProtocol() @@ -18,3 +20,5 @@ export const useAccount = () => { return { account, createAccount, deleteAccount } as const } + +export type { Account } diff --git a/packages/status-react/src/routes/chat/components/chat-message/actions.tsx b/packages/status-react/src/routes/chat/components/chat-message/actions.tsx index 110b1309..53105db9 100644 --- a/packages/status-react/src/routes/chat/components/chat-message/actions.tsx +++ b/packages/status-react/src/routes/chat/components/chat-message/actions.tsx @@ -15,7 +15,7 @@ import { Tooltip, } from '~/src/system' -import type { Reaction, Reactions } from '~/src/protocol/use-messages' +import type { Reaction, Reactions } from '~/src/protocol' interface Props { owner: boolean