diff --git a/.changeset/popular-islands-sell.md b/.changeset/popular-islands-sell.md new file mode 100644 index 00000000..9406fb65 --- /dev/null +++ b/.changeset/popular-islands-sell.md @@ -0,0 +1,5 @@ +--- +'@web3-ui/core': minor +--- + +Export all the hooks from the core package too diff --git a/packages/core/src/components/ConnectWallet/ConnectWallet.stories.tsx b/packages/core/src/components/ConnectWallet/ConnectWallet.stories.tsx index c731d5c9..8577a00d 100644 --- a/packages/core/src/components/ConnectWallet/ConnectWallet.stories.tsx +++ b/packages/core/src/components/ConnectWallet/ConnectWallet.stories.tsx @@ -1,3 +1,4 @@ +import { NETWORKS } from '@web3-ui/hooks'; import React from 'react'; import { ConnectWallet } from '.'; import { Provider } from '..'; @@ -6,12 +7,12 @@ export default { component: ConnectWallet, title: 'Core/ConnectWallet', decorators: [ - (Story) => ( - + Story => ( + - ), - ], + ) + ] }; export const Default = () => ; diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 07635cbb..e4d25b7f 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1 +1,10 @@ export * from './components'; +export { + NETWORKS, + CHAIN_ID_TO_NETWORK, + Web3Context, + useWallet, + useTokenBalance, + useTransaction, + useContract +} from '@web3-ui/hooks';