Skip to content

Instructions do not add react-netlify-identity #10

Description

@donaldboulton

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions