Skip to content

Instructions do not add react-netlify-identity #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
donaldboulton opened this issue Jan 30, 2020 · 1 comment
Open

Instructions do not add react-netlify-identity #10

donaldboulton opened this issue Jan 30, 2020 · 1 comment

Comments

@donaldboulton
Copy link

donaldboulton commented Jan 30, 2020

Instructions do not add react-netlify-identity and it will pop up the modal and provide context but will not login without it.

should it not be

yarn add react-netlify-identity react-netlify-identity-widget @reach/dialog @reach/tabs @reach/visually-hidden
and then it add's the updated @reach/dialog @reach/tabs @reach/visually-hidden and you get a npm warring
EDIT:
Did not need gatsby netlify plugin, My context URl is set globally in ssr and browser

`
import React from 'react'
import { IdentityContextProvider } from 'react-netlify-identity-widget'
import './static/scss/styles.css'

export const wrapRootElement = ({ element }) => (
<IdentityContextProvider url='https://publiuslogic.com'> // without trailing slash /
{element}
</IdentityContextProvider>
)`

check it out at publiuslogic.com

@swyxio
Copy link
Contributor

swyxio commented Feb 3, 2020

hmm i had thought it was not needed since RNIW also includes RNI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants