fix: protocol exports

This commit is contained in:
Pavel Prichodko 2022-06-15 16:06:59 +02:00
parent be58052fcd
commit ddd01a0e35
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
3 changed files with 7 additions and 1 deletions

View File

@ -6,3 +6,5 @@ export { useChat } from './use-chat'
export { useChats } from './use-chats' export { useChats } from './use-chats'
export type { Member } from './use-members' export type { Member } from './use-members'
export { useMembers } from './use-members' export { useMembers } from './use-members'
export type { Message, Reaction, Reactions } from './use-messages'
export { useMessages } from './use-messages'

View File

@ -1,5 +1,7 @@
import { useProtocol } from './provider' import { useProtocol } from './provider'
import type { Account } from '@status-im/js'
export const useAccount = () => { export const useAccount = () => {
const { client, account, dispatch } = useProtocol() const { client, account, dispatch } = useProtocol()
@ -18,3 +20,5 @@ export const useAccount = () => {
return { account, createAccount, deleteAccount } as const return { account, createAccount, deleteAccount } as const
} }
export type { Account }

View File

@ -15,7 +15,7 @@ import {
Tooltip, Tooltip,
} from '~/src/system' } from '~/src/system'
import type { Reaction, Reactions } from '~/src/protocol/use-messages' import type { Reaction, Reactions } from '~/src/protocol'
interface Props { interface Props {
owner: boolean owner: boolean