Skip to content

Commit

Permalink
fix(docs): typo in ts dapp docs (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
salaheldinsoliman authored Aug 22, 2024
1 parent f643955 commit ce3b1d8
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
```
<AlphaNet />

Next, set up the `IOTAClientProvider`. This `Provider` delivers a `IOTAClient` instance from `@iota/iota-sdk` to all the hooks in dApp Kit. This provider manages which network dApp Kit connects to, and can accept configuration for multiple networks. This exercise connects to `devnet`.
Next, set up the `IotaClientProvider`. This `Provider` delivers a `IOTAClient` instance from `@iota/iota-sdk` to all the hooks in dApp Kit. This provider manages which network dApp Kit connects to, and can accept configuration for multiple networks. This exercise connects to `devnet`.

```ts
import { IOTAClientProvider } from '@iota/dapp-kit';
import { IotaClientProvider } from '@iota/dapp-kit';
import { getFullnodeUrl } from '@iota/iota-sdk/client';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

Expand All @@ -90,9 +90,9 @@ const networks = {
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<IOTAClientProvider networks={networks} defaultNetwork="devnet">
<IotaClientProvider networks={networks} defaultNetwork="devnet">
<App />
</IOTAClientProvider>
</IotaClientProvider>
</QueryClientProvider>
</React.StrictMode>,
);
Expand All @@ -103,7 +103,7 @@ Finally, set up the `WalletProvider` from `@iota/dapp-kit`, and import styles fo
```ts
import '@iota/dapp-kit/dist/index.css';

import { IOTAClientProvider, WalletProvider } from '@iota/dapp-kit';
import { IotaClientProvider, WalletProvider } from '@iota/dapp-kit';
import { getFullnodeUrl } from '@iota/iota-sdk/client';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

Expand All @@ -116,11 +116,11 @@ const networks = {
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<IOTAClientProvider networks={networks} defaultNetwork="devnet">
<IotaClientProvider networks={networks} defaultNetwork="devnet">
<WalletProvider>
<App />
</WalletProvider>
</IOTAClientProvider>
</IotaClientProvider>
</QueryClientProvider>
</React.StrictMode>,
);
Expand Down

0 comments on commit ce3b1d8

Please sign in to comment.