Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Commit 42ff7ae

Browse files
committed
docs: update react-components readme LoadingContainer references
1 parent 0cdcede commit 42ff7ae

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/react-components/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ For 1.x.x this is how you import the different components:
1212

1313
```
1414
import { newContextComponents } from "@drizzle/react-components";
15-
const { AccountData, ContractData, ContractForm } = newContextComponents;
15+
const { AccountData, ContractData, ContractForm, LoadingContainer } = newContextComponents;
1616
```
1717

18-
`LoadingContainer` is not provided with the new context components currently. Also note that you must pass in `drizzle` and `drizzleState` for each of these components.
18+
Note that you must pass in `drizzle` and `drizzleState` for each of these components.
1919

2020
### Legacy Context Components
2121

@@ -30,14 +30,16 @@ import {
3030

3131
Refer to the included [test apps](#test-apps) for usage examples.
3232

33-
### LoadingContainer (Legacy only)
33+
### LoadingContainer
3434

35-
This component wraps your entire app (but within the DrizzleProvider) and will show a loading screen until Drizzle, and therefore web3 and your contracts, are initialized.
35+
This component wraps your entire app (but within the DrizzleProvider) and will show a loading screen until Drizzle, and therefore web3 and your contracts, are initialized. If using `networkWhitelist` in your `drizzleOptions`, it will also detect if the provider is connected to a non-whitelisted network and display a warning message.
3636

3737
`loadingComp` (component) The component displayed while Drizzle initializes.
3838

3939
`errorComp` (component) The component displayed if Drizzle initialization fails.
4040

41+
`networkMismatchComp` (component) The component displayed if the provider is connected to a non-whitelisted network.
42+
4143
### AccountData
4244

4345
`accountIndex` (number, required) Index of account from which to retrieve balance.

0 commit comments

Comments
 (0)