Skip to content

Commit

Permalink
dapp-kit-docs: Documentation typo (#16412)
Browse files Browse the repository at this point in the history
From { type SuiClientOptions } to { getFullnodeUrl }

## Description 

Documentation change

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [x] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

Fix typo in examples in dapp-kit docs
  • Loading branch information
nikos-terzo authored Mar 4, 2024
1 parent fbd644c commit 93b983e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/docs/pages/dapp-kit/sui-client-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ currently active network.

```tsx
import { createNetworkConfig, SuiClientProvider, WalletProvider } from '@mysten/dapp-kit';
import { type SuiClientOptions } from '@mysten/sui.js/client';
import { getFullnodeUrl } from '@mysten/sui.js/client';

// Config options for the networks you want to connect to
const { networkConfig } = createNetworkConfig({
Expand Down Expand Up @@ -49,7 +49,7 @@ The following example demonstrates a `SuiClientProvider` used as a controlled co

```tsx
import { createNetworkConfig, SuiClientProvider } from '@mysten/dapp-kit';
import { type SuiClientOptions } from '@mysten/sui.js/client';
import { getFullnodeUrl } from '@mysten/sui.js/client';
import { useState } from 'react';

// Config options for the networks you want to connect to
Expand Down Expand Up @@ -81,7 +81,7 @@ The following example demonstrates how to create a custom `SuiClient`.

```tsx
import { SuiClientProvider } from '@mysten/dapp-kit';
import { SuiClient, SuiHTTPTransport, type SuiClientOptions } from '@mysten/sui.js/client';
import { getFullnodeUrl, SuiClient, SuiHTTPTransport } from '@mysten/sui.js/client';

// Config options for the networks you want to connect to
const networks = {
Expand Down Expand Up @@ -166,7 +166,7 @@ to get the variables defined in your configuration.
import { createNetworkConfig, SuiClientProvider } from '@mysten/dapp-kit';

import { createNetworkConfig, SuiClientProvider, WalletProvider } from '@mysten/dapp-kit';
import { type SuiClientOptions } from '@mysten/sui.js/client';
import { getFullnodeUrl } from '@mysten/sui.js/client';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

// Config options for the networks you want to connect to
Expand Down

0 comments on commit 93b983e

Please sign in to comment.