Skip to content

Commit f064353

Browse files
committed
Update export from core/import in react package, update docs
1 parent 377bb46 commit f064353

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

packages/core/src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ export type {
4646
ConnectOptions,
4747
DisconnectOptions,
4848
WalletState,
49-
ConnectedChain
49+
ConnectedChain,
50+
AccountCenter,
51+
AppState,
52+
CustomNotification,
53+
Notification,
54+
NotifyOptions,
55+
UpdateNotification
5056
} from './types'
5157

5258
export type { EIP1193Provider } from '@web3-onboard/common'

packages/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ const [
320320
321321
## `useNotifications`
322322
323-
This hook allows the dev to access all notifications if enabled, send custom notifications and update notify >enable/disable and change transactionHandler function<
323+
This hook allows the dev to access all notifications if enabled, send custom notifications and update notify <enable/disable & update transactionHandler function>
324324
**note** requires an API key be added to the initialization, enabled by default if API key exists
325325
326326
```typescript

packages/react/src/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ import type {
88
ConnectOptions,
99
DisconnectOptions,
1010
WalletState,
11-
ConnectedChain
12-
} from '@web3-onboard/core'
13-
import type { Chain, WalletInit } from '@web3-onboard/common'
14-
import type {
11+
ConnectedChain,
1512
AccountCenter,
1613
AppState,
1714
CustomNotification,
1815
Notification,
1916
NotifyOptions,
2017
UpdateNotification
21-
} from '@web3-onboard/core/dist/types'
18+
} from '@web3-onboard/core'
19+
import type { Chain, WalletInit } from '@web3-onboard/common'
2220

2321
export let web3Onboard: OnboardAPI | null = null
2422

0 commit comments

Comments
 (0)