@bbki.ng/site 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 2.0.4
4
+
5
+ ## 2.0.3
6
+
3
7
  ## 2.0.2
4
8
 
5
9
  ## 2.0.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,8 +17,6 @@ export const LoginMenuItem = () => {
17
17
 
18
18
  if (sess?.user != null) {
19
19
  return (
20
- <>
21
- <ContextMenuLabel inset>{sess?.user?.email ?? ""}</ContextMenuLabel>
22
20
  <ContextMenuItem
23
21
  inset
24
22
  onClick={() => {
@@ -29,9 +27,17 @@ export const LoginMenuItem = () => {
29
27
  });
30
28
  }}
31
29
  >
32
- logout
30
+ {sess?.user?.user_metadata && (
31
+ <img
32
+ src={sess?.user?.user_metadata.avatar_url}
33
+ alt="avatar"
34
+ style={{ width: 16, height: 16 }}
35
+ className="rounded-full absolute left-2.5"
36
+ crossOrigin="anonymous"
37
+ />
38
+ )}
39
+ {sess?.user?.email ?? ""}
33
40
  </ContextMenuItem>
34
- </>
35
41
  );
36
42
  }
37
43