@oxyhq/services 0.0.33 → 0.0.35
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.
|
@@ -34,22 +34,22 @@ export const AccountSwitcherModal = forwardRef(({ onClose }, ref) => {
|
|
|
34
34
|
ease: "easeInOut",
|
|
35
35
|
duration: 0.2,
|
|
36
36
|
}, className: styles.container, style: style, role: "group" },
|
|
37
|
-
React.createElement("div", { className: "relative z-10 flex flex-col items-center justify-center\n space-y-3 rounded-2xl bg-
|
|
38
|
-
React.createElement("button", { className: "absolute right-3 top-3 rounded-full bg-
|
|
39
|
-
React.createElement(AiOutlineClose, { className: "h-5 w-5 rounded-full stroke-2 text-
|
|
37
|
+
React.createElement("div", { className: "relative z-10 flex flex-col items-center justify-center\n space-y-3 rounded-2xl bg-indigo-50 px-5 py-3 text-sm font-medium text-zinc-700\n shadow-md shadow-[#b4bebb]" },
|
|
38
|
+
React.createElement("button", { className: "absolute right-3 top-3 rounded-full bg-indigo-50 p-1 hover:bg-zinc-200" },
|
|
39
|
+
React.createElement(AiOutlineClose, { className: "h-5 w-5 rounded-full stroke-2 text-zinc-700" })),
|
|
40
40
|
React.createElement("p", null, session?.user?.email),
|
|
41
41
|
React.createElement("div", { className: "h-20 w-20 rounded-full border" },
|
|
42
42
|
React.createElement(Image, { src: session?.user?.avatar, className: "h-full w-full rounded-full object-center", height: 500, width: 500, draggable: false, alt: "avatar" })),
|
|
43
|
-
React.createElement("h2", { className: "
|
|
43
|
+
React.createElement("h2", { className: "text-2xl text-xl font-normal" },
|
|
44
44
|
"Hi, ",
|
|
45
45
|
session?.user?.name,
|
|
46
46
|
"!"),
|
|
47
|
-
React.createElement("button", { className: "rounded-full border border-black px-7 py-2 text-
|
|
47
|
+
React.createElement("button", { className: "rounded-full border border-black px-7 py-2 text-blue-500 hover:bg-[#d3dfee]" }, "Manage your Google Account"),
|
|
48
48
|
React.createElement("div", { className: "flex space-x-1" },
|
|
49
|
-
React.createElement("button", { className: "
|
|
50
|
-
React.createElement(HiOutlinePlus, { className: "h-7 w-7 rounded-full bg-
|
|
49
|
+
React.createElement("button", { className: "w-44 flex w-36 items-center space-x-2 rounded-l-full bg-white py-3 pl-3 hover:bg-zinc-200" },
|
|
50
|
+
React.createElement(HiOutlinePlus, { className: "h-7 w-7 rounded-full bg-indigo-50 p-1 text-blue-500" }),
|
|
51
51
|
React.createElement("span", null, "Add account")),
|
|
52
|
-
React.createElement("button", { className: "
|
|
52
|
+
React.createElement("button", { className: "w-44 flex w-36 items-center space-x-2 rounded-r-full bg-white py-3 pl-3 hover:bg-zinc-200" },
|
|
53
53
|
React.createElement(PiSignOutBold, { className: "h-6 w-6" }),
|
|
54
54
|
React.createElement("span", null, "Sign out"))),
|
|
55
55
|
React.createElement("div", { className: "flex h-10 items-center space-x-2 text-xs" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.d.ts","sourceRoot":"","sources":["../../src/hooks/get-user.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-user.d.ts","sourceRoot":"","sources":["../../src/hooks/get-user.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,OAAc,MAAM,GAAG,SAAS,iBAsBnD,CAAC"}
|
package/dist/hooks/get-user.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
+
import { OXY_AUTH_URL } from "../config";
|
|
2
3
|
export const getUser = async (id) => {
|
|
3
4
|
try {
|
|
4
|
-
const response = await axios.get(`/api/users/${id}`);
|
|
5
|
+
const response = await axios.get(OXY_AUTH_URL + `/api/users/${id}`);
|
|
5
6
|
return response.data;
|
|
6
7
|
}
|
|
7
8
|
catch (error) {
|