@bbki.ng/site 2.0.2 → 2.0.3

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,7 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 2.0.3
4
+
3
5
  ## 2.0.2
4
6
 
5
7
  ## 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.3",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,9 @@ export const LoginMenuItem = () => {
18
18
  if (sess?.user != null) {
19
19
  return (
20
20
  <>
21
- <ContextMenuLabel inset>{sess?.user?.email ?? ""}</ContextMenuLabel>
21
+ <ContextMenuLabel inset>
22
+ {sess?.user?.email ?? ""}
23
+ </ContextMenuLabel>
22
24
  <ContextMenuItem
23
25
  inset
24
26
  onClick={() => {
@@ -29,6 +31,15 @@ export const LoginMenuItem = () => {
29
31
  });
30
32
  }}
31
33
  >
34
+ {sess?.user?.user_metadata && (
35
+ <img
36
+ src={sess?.user?.user_metadata.avatar_url}
37
+ alt="avatar"
38
+ style={{ width: 16, height: 16 }}
39
+ className="rounded-full absolute left-2.5"
40
+ crossOrigin="anonymous"
41
+ />
42
+ )}
32
43
  logout
33
44
  </ContextMenuItem>
34
45
  </>