Skip to content

Commit

Permalink
packages/wallet: Only export KitWalletProvider and openWalletModal hook
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed May 15, 2024
1 parent 67aaabf commit d60a755
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/react-waas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"start": "vite --port 4444",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"0xsequence": "^1.9.26",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Transaction } from '@0xsequence/indexer'

import { createGenericContext } from '../utils/genericContext'
import { createGenericContext } from './genericContext'

export interface CollectionDetailsParams {
contractAddress: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

import { createGenericContext } from '../utils/genericContext'
import { createGenericContext } from './genericContext'

type WalletModalContext = {
setOpenWalletModal: React.Dispatch<React.SetStateAction<boolean>>
Expand Down
File renamed without changes.
8 changes: 5 additions & 3 deletions packages/wallet/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * from './hooks'
export * from './contexts'
export * from './shared'
// Provider
export { KitWalletProvider } from './shared/KitWalletProvider'

// Hooks
export { useOpenWalletModal } from './hooks/useOpenWalletModal'

0 comments on commit d60a755

Please sign in to comment.