File tree 2 files changed +18
-17
lines changed
2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.cjs.development.js" : {
3
- "bundled" : 8689 ,
4
- "minified" : 3490 ,
5
- "gzipped" : 1344
3
+ "bundled" : 8887 ,
4
+ "minified" : 3642 ,
5
+ "gzipped" : 1373
6
6
},
7
7
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.cjs.production.js" : {
8
- "bundled" : 8689 ,
9
- "minified" : 3490 ,
10
- "gzipped" : 1344
8
+ "bundled" : 8887 ,
9
+ "minified" : 3642 ,
10
+ "gzipped" : 1373
11
11
},
12
12
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.umd.development.js" : {
13
- "bundled" : 9595 ,
14
- "minified" : 3337 ,
15
- "gzipped" : 1362
13
+ "bundled" : 9799 ,
14
+ "minified" : 3375 ,
15
+ "gzipped" : 1376
16
16
},
17
17
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.umd.production.js" : {
18
- "bundled" : 9595 ,
19
- "minified" : 3337 ,
20
- "gzipped" : 1362
18
+ "bundled" : 9799 ,
19
+ "minified" : 3375 ,
20
+ "gzipped" : 1376
21
21
},
22
22
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.es.production.js" : {
23
- "bundled" : 8500 ,
24
- "minified" : 3341 ,
25
- "gzipped" : 1290 ,
23
+ "bundled" : 8683 ,
24
+ "minified" : 3480 ,
25
+ "gzipped" : 1319 ,
26
26
"treeshaked" : {
27
27
"rollup" : {
28
28
"code" : 129 ,
Original file line number Diff line number Diff line change 6
6
} from "@reach/dialog"
7
7
import VisuallyHidden from "@reach/visually-hidden"
8
8
9
- import { Widget } from "./app"
9
+ import { Widget , NetlifyIdentityContext } from "./app"
10
10
type ModalProps = {
11
11
/** URL of your Netlify Instance with Identity enabled e.g. https://netlify-gotrue-in-react.netlify.com */
12
12
netlifyInstance : string
@@ -15,7 +15,8 @@ type ModalProps = {
15
15
/** modal will call this function to set the state of showDialog to false */
16
16
onCloseDialog : ( ) => void
17
17
}
18
- export function Modal ( { showDialog, onCloseDialog, netlifyInstance } : ModalProps ) {
18
+ export const IdentityContext = NetlifyIdentityContext
19
+ export function IdentityModal ( { showDialog, onCloseDialog, netlifyInstance } : ModalProps ) {
19
20
if ( ! netlifyInstance ) {
20
21
// just a safety check in case a JS user tries to skip this
21
22
if ( ! validateUrl ( netlifyInstance ) )
You can’t perform that action at this time.
0 commit comments