Skip to content

Commit

Permalink
feat(docs): update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Sep 12, 2023
1 parent 1a05d94 commit 8650876
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ sidebar_position: 15
walletType: WalletType;
}
```
-

## Version 0.0.49

Expand Down
11 changes: 7 additions & 4 deletions docs/docs/hooks/useSuggestChain.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ interface ChainInfo {

```tsx
import { Bech32Address } from "@keplr-wallet/cosmos";
import { useSuggestChain } from "graz";
import { useSuggestChain, WalletType } from "graz";

const OSMO = {
coinDenom: "osmo",
Expand Down Expand Up @@ -97,7 +97,10 @@ function App() {
const { suggest } = useSuggestChain();

function handleSuggestChain() {
suggest(osmosisTestnet);
suggest({
chainInfo: osmosisTestnet,
walletType: WalletType.KEPLR,
});
}

return (
Expand All @@ -123,8 +126,8 @@ Object params
error: unknown;
isLoading: boolean;
isSuccess: boolean;
suggest: (chain: ChainInfo) => void;
suggestAsync: (chain: ChainInfo) => Promise<ChainInfo>;
suggest: ({chain: ChainInfo, walletType: WalletType}) => void;
suggestAsync: ({chain: ChainInfo, walletType: WalletType}) => Promise<ChainInfo>;
status: "idle" | "error" | "loading" | "success";
}
```

0 comments on commit 8650876

Please sign in to comment.