File tree 4 files changed +24
-20
lines changed
4 files changed +24
-20
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" : 12653 ,
4
- "minified" : 8132 ,
5
- "gzipped" : 2130
3
+ "bundled" : 13074 ,
4
+ "minified" : 8197 ,
5
+ "gzipped" : 2149
6
6
},
7
7
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.cjs.production.js" : {
8
- "bundled" : 12653 ,
9
- "minified" : 8132 ,
10
- "gzipped" : 2130
8
+ "bundled" : 13074 ,
9
+ "minified" : 8197 ,
10
+ "gzipped" : 2149
11
11
},
12
12
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.umd.development.js" : {
13
- "bundled" : 13620 ,
14
- "minified" : 7066 ,
15
- "gzipped" : 2077
13
+ "bundled" : 14059 ,
14
+ "minified" : 7131 ,
15
+ "gzipped" : 2100
16
16
},
17
17
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.umd.production.js" : {
18
- "bundled" : 13620 ,
19
- "minified" : 7066 ,
20
- "gzipped" : 2077
18
+ "bundled" : 14059 ,
19
+ "minified" : 7131 ,
20
+ "gzipped" : 2100
21
21
},
22
22
"/Users/swyx/Netlify/react-netlify-identity-widget/dist/reactNetlifyIdentityWidget.es.production.js" : {
23
- "bundled" : 12418 ,
24
- "minified" : 7900 ,
25
- "gzipped" : 2070 ,
23
+ "bundled" : 12839 ,
24
+ "minified" : 7965 ,
25
+ "gzipped" : 2089 ,
26
26
"treeshaked" : {
27
27
"rollup" : {
28
- "code" : 5599 ,
28
+ "code" : 5664 ,
29
29
"import_statements" : 198
30
30
},
31
31
"webpack" : {
32
- "code" : 6907
32
+ "code" : 6972
33
33
}
34
34
}
35
35
}
Original file line number Diff line number Diff line change 9
9
"@types/react-dom" : " 16.8.4" ,
10
10
"react" : " ^16.8.6" ,
11
11
"react-dom" : " ^16.8.6" ,
12
- "react-scripts" : " 3.0.0" ,
12
+ "react-scripts" : " ^3.0.0" ,
13
+ "react-netlify-identity-widget" : " latest" ,
13
14
"typescript" : " 3.4.5" ,
14
15
"@reach/dialog" : " ^0.2.3" ,
15
16
"@reach/tabs" : " ^0.1.3" ,
Original file line number Diff line number Diff line change 1
1
# example netlify.toml
2
2
[build ]
3
3
# command = "yarn link && cd example && yarn && yarn link react-netlify-identity-widget && yarn build"
4
- command = " cd example && yarn && yarn add react-netlify-identity-widget && yarn build"
4
+ command = " cd example && yarn && yarn build"
5
5
functions = " functions"
6
6
publish = " example/build"
7
7
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ import useLoading from "../useLoading"
4
4
5
5
export function Logout ( ) {
6
6
const identity = useIdentityContext ( )
7
+ const name =
8
+ ( identity && identity . user && identity . user . user_metadata && identity . user . user_metadata . full_name ) || "NoName"
9
+
7
10
const [ isLoading , load ] = useLoading ( )
8
11
const logout = ( ) => load ( identity . logoutUser ( ) )
9
12
return (
@@ -14,7 +17,7 @@ export function Logout() {
14
17
< form className = "form " >
15
18
< p className = "infoText" >
16
19
Logged in as < br />
17
- < span className = "infoTextEmail" > Shawn Wang </ span >
20
+ < span className = "infoTextEmail" > { name } </ span >
18
21
</ p >
19
22
< button type = "submit" className = { isLoading ? "btn saving" : "btn" } onClick = { logout } >
20
23
Log out
You can’t perform that action at this time.
0 commit comments