Skip to content

Commit 35c5729

Browse files
author
sw-yx
committed
2 parents 663e486 + fff8e7a commit 35c5729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ we require some peer dependencies:
1616
yarn add react-netlify-identity-widget @reach/dialog @reach/tabs @reach/visually-hidden
1717
```
1818

19-
and the styles are optional but provided. here's how to use `IdentityModal, useNetlifyIdentity, IdentityContextProvider`:
19+
and the styles are optional but provided. here's how to use `IdentityModal, useIdentityContext, IdentityContextProvider`:
2020

2121
```tsx
2222
import React from "react"
@@ -27,7 +27,7 @@ import "react-netlify-identity-widget/styles.css"
2727
function App() {
2828
const url = process.env.REACT_APP_NETLIFY_URL // supply the url of your Netlify site instance. VERY IMPORTANT
2929
return (
30-
<IdentityContextProvider value={identity}>
30+
<IdentityContextProvider url={url}>
3131
<AuthStatusView />
3232
</IdentityContextProvider>
3333
)

0 commit comments

Comments
 (0)