Skip to content

Commit

Permalink
Dev (#37)
Browse files Browse the repository at this point in the history
* chore: Update bug_report template (#26)

* feat: Add test example

* feat: Update examples

* feat: Add disclaimer & download url

* docs: Update example

* docs: Update docs

* docs: Update docs

* docs: Update gitignore

* docs: Update docs

* feat: Add zIndices theme config

* feat: Update examples

* feat: Refactor switch network modal

* refactor: Clean code

* feat: Update examples

* refactor: Update dependencies

* feat: Update version

* docs: Update docs

* chore: Add changeset

* test: Test changeset version

* docs: Create LICENSE

* docs: Update packages info

* chore: Add husky & lint-staged

* abc: test commit lint

* chore: Update husky

* chore: Update husky

* test: test husky

* chore: Add issue & pr template

* fix: Update OpenSwitchNetworkOptions type

* feat: Add options to control modal close

* feat: Add default wallets to walletConnect

* docs: Update useModal document

* refactor: Add className to base components

* chore: Add release github acton

* chore: Add publish ci script

* chore: Fix github action

* chore: Update github action

* test: Test github action

* chore: Add  .pnpm-store to gitignore

* chore: Update github action

* chore: Copy readme to walletkit package when publish

* chore: Update issue_template

* chore: Update pr & issue template

* Update bug_report.yml

* Create config.yml

* Delete .github/ISSUE_TEMPLATE/config.yml

* Update bug_report.yml

* Update bug_report.yml

* chore: Update bug_report.yml

* style: Add chains type declaration for dev example

* style: Add chains type declaration for dev example
  • Loading branch information
wenty22 authored Nov 27, 2023
1 parent 88ce8bb commit 9fd73b8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-eels-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Add chains type declaration for dev example
5 changes: 5 additions & 0 deletions .changeset/pretty-zoos-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Fixed typescript declaration files export path error, remove `dev` in tsconfig.json includes field
5 changes: 3 additions & 2 deletions packages/walletkit/dev/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
WalletKitProvider,
getDefaultConfig,
useModal,
} from '@/index';
} from '../src/index';

import { useState } from 'react';
import {
Expand All @@ -20,7 +20,8 @@ import {
tokenPocket,
trustWallet,
walletConnect,
} from '@/wallets';
} from '../src/wallets';
import React from 'react';

const config = createConfig(
getDefaultConfig({
Expand Down
4 changes: 2 additions & 2 deletions packages/walletkit/src/wallets/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export function getInjectedProvider(flag: keyof InjectedProviderFlags): WindowPr
return providers
? providers.find((provider: WindowProvider) => provider[flag])
: window.ethereum[flag]
? window.ethereum
: undefined;
? window.ethereum
: undefined;
}

export function hasInjectedProvider(flag: keyof InjectedProviderFlags): boolean {
Expand Down
2 changes: 1 addition & 1 deletion packages/walletkit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"@/*": ["src/*"]
}
},
"include": ["src", "dev"],
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
10 changes: 5 additions & 5 deletions website/src/components/WalletKit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {
SwitchNetworkModal,
} from '@totejs/walletkit';
import {
binanceWeb3Wallet,
coinbaseWallet,
mathWallet,
// binanceWeb3Wallet,
// coinbaseWallet,
// mathWallet,
metaMask,
okxWallet,
tokenPocket,
// okxWallet,
// tokenPocket,
trustWallet,
walletConnect,
} from '@totejs/walletkit/wallets';
Expand Down

0 comments on commit 9fd73b8

Please sign in to comment.