Skip to content

Commit 1a33c80

Browse files
authored
Export hooks from the core package (#166)
* Export the contents of the hooks package from the core package * Add changeset
1 parent 184ec43 commit 1a33c80

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.changeset/popular-islands-sell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@web3-ui/core': minor
3+
---
4+
5+
Export all the hooks from the core package too
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { NETWORKS } from '@web3-ui/hooks';
12
import React from 'react';
23
import { ConnectWallet } from '.';
34
import { Provider } from '..';
@@ -6,12 +7,12 @@ export default {
67
component: ConnectWallet,
78
title: 'Core/ConnectWallet',
89
decorators: [
9-
(Story) => (
10-
<Provider network={4}>
10+
Story => (
11+
<Provider network={NETWORKS.rinkeby}>
1112
<Story />
1213
</Provider>
13-
),
14-
],
14+
)
15+
]
1516
};
1617

1718
export const Default = () => <ConnectWallet />;

packages/core/src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
export * from './components';
2+
export {
3+
NETWORKS,
4+
CHAIN_ID_TO_NETWORK,
5+
Web3Context,
6+
useWallet,
7+
useTokenBalance,
8+
useTransaction,
9+
useContract
10+
} from '@web3-ui/hooks';

0 commit comments

Comments
 (0)