@oxyhq/services 0.0.45 → 0.0.47
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSwitcherModal.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AccountSwitcherModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountSwitcherModal.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AccountSwitcherModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyB/B,eAAO,MAAM,oBAAoB;aAEpB,MAAM,IAAI;2CAoErB,CAAC"}
|
|
@@ -4,10 +4,10 @@ import { useEffect, useState } from "react";
|
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
5
|
import useOxySession from "../../hooks/useOxySession";
|
|
6
6
|
import { forwardRef } from "react";
|
|
7
|
-
import Image from "next/image";
|
|
8
7
|
import { HiOutlinePlus } from "react-icons/hi";
|
|
9
8
|
import { PiSignOutBold } from "react-icons/pi";
|
|
10
9
|
import { AiOutlineClose } from "react-icons/ai";
|
|
10
|
+
import { Avatar } from "../../features/profile";
|
|
11
11
|
import getUserById from "../../hooks/getUserById";
|
|
12
12
|
export const AccountSwitcherModal = forwardRef(({ onClose }, ref) => {
|
|
13
13
|
const { session } = useOxySession();
|
|
@@ -31,17 +31,17 @@ export const AccountSwitcherModal = forwardRef(({ onClose }, ref) => {
|
|
|
31
31
|
React.createElement(AiOutlineClose, { className: "h-5 w-5 rounded-full stroke-2 text-zinc-700" })),
|
|
32
32
|
React.createElement("p", null, session?.user?.email),
|
|
33
33
|
React.createElement("div", { className: "h-20 w-20 rounded-full border" },
|
|
34
|
-
React.createElement(
|
|
35
|
-
React.createElement("h2", { className: "
|
|
34
|
+
React.createElement(Avatar, { userImage: session?.user?.avatar, className: "h-full w-full rounded-full object-center", height: 500, width: 500, draggable: false, alt: "avatar" })),
|
|
35
|
+
React.createElement("h2", { className: "md:text-2xl text-xl font-normal" },
|
|
36
36
|
"Hi, ",
|
|
37
37
|
session?.user?.name,
|
|
38
38
|
"!"),
|
|
39
39
|
React.createElement("button", { className: "rounded-full border border-black px-7 py-2 text-blue-500 hover:bg-[#d3dfee]" }, "Manage your Oxy Account"),
|
|
40
40
|
React.createElement("div", { className: "flex space-x-1" },
|
|
41
|
-
React.createElement("button", { className: "
|
|
41
|
+
React.createElement("button", { className: "md:w-44 flex w-36 items-center space-x-2 rounded-l-full bg-white py-3 pl-3 hover:bg-zinc-200" },
|
|
42
42
|
React.createElement(HiOutlinePlus, { className: "h-7 w-7 rounded-full bg-indigo-50 p-1 text-blue-500" }),
|
|
43
43
|
React.createElement("span", null, "Add account")),
|
|
44
|
-
React.createElement("button", { className: "
|
|
44
|
+
React.createElement("button", { className: "md:w-44 flex w-36 items-center space-x-2 rounded-r-full bg-white py-3 pl-3 hover:bg-zinc-200" },
|
|
45
45
|
React.createElement(PiSignOutBold, { className: "h-6 w-6" }),
|
|
46
46
|
React.createElement("span", null, "Sign out"))),
|
|
47
47
|
React.createElement("div", { className: "flex h-10 items-center space-x-2 text-xs" },
|