@oxyhq/services
Advanced tools
Comparing version 0.0.20 to 0.0.21
import React from "react"; | ||
import Image from "next/image"; | ||
import { signOut, useSession } from "next-auth/react"; | ||
import { signOut } from "next-auth/react"; | ||
import useOxySession from "../../hooks/useOxySession"; | ||
function UserInfo({ setDisplayUserInfo }) { | ||
const { data: session } = useSession(); | ||
const { session } = useOxySession(); | ||
return (React.createElement("div", { className: "relative z-10 flex flex-col items-center justify-center\n space-y-3 rounded-2xl bg-darkC2 px-5 py-3 text-sm font-medium text-textC\n shadow-md shadow-[#b4bebb]" }, | ||
@@ -10,3 +11,3 @@ React.createElement("button", { onClick: () => setDisplayUserInfo((prev) => false), className: "absolute right-3 top-3 rounded-full bg-darkC2 p-1 hover:bg-darkC" }), | ||
React.createElement("div", { className: "h-20 w-20 rounded-full border" }, | ||
React.createElement(Image, { src: session?.user?.image, className: "h-full w-full rounded-full object-center", height: 500, width: 500, draggable: false, alt: "avatar" })), | ||
React.createElement(Image, { src: session?.user?.avatar, className: "h-full w-full rounded-full object-center", height: 500, width: 500, draggable: false, alt: "avatar" })), | ||
React.createElement("h2", { className: "tablet:text-2xl text-xl font-normal" }, | ||
@@ -16,3 +17,3 @@ "Hi, ", | ||
"!"), | ||
React.createElement("button", { className: "rounded-full border border-black px-7 py-2 text-textC2 hover:bg-[#d3dfee]" }, "Manage your Google Account"), | ||
React.createElement("button", { className: "rounded-full border border-black px-7 py-2 text-textC2 hover:bg-[#d3dfee]" }, "Manage your Oxy Account"), | ||
React.createElement("div", { className: "flex space-x-1" }, | ||
@@ -19,0 +20,0 @@ React.createElement("button", { className: "tablet:w-44 flex w-36 items-center space-x-2 rounded-l-full bg-white py-3 pl-3 hover:bg-darkC" }, |
@@ -9,3 +9,3 @@ interface SessionModel { | ||
verified: boolean; | ||
profile_image_url: string; | ||
avatar: string; | ||
created_at: string; | ||
@@ -12,0 +12,0 @@ }; |
import useOxySession from "./hooks/useOxySession"; | ||
import getUserById from "./hooks/getUserById"; | ||
import SignInButton from "./components/auth/SignInButton"; | ||
export { useOxySession, getUserById, SignInButton }; | ||
import AccountSwitcher from "./components/auth/AccountSwitcher"; | ||
export { useOxySession, getUserById, SignInButton, AccountSwitcher }; | ||
//# sourceMappingURL=index.d.ts.map |
import useOxySession from "./hooks/useOxySession"; | ||
import getUserById from "./hooks/getUserById"; | ||
import SignInButton from "./components/auth/SignInButton"; | ||
export { useOxySession, getUserById, SignInButton }; | ||
import AccountSwitcher from "./components/auth/AccountSwitcher"; | ||
export { useOxySession, getUserById, SignInButton, AccountSwitcher }; |
{ | ||
"name": "@oxyhq/services", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "https://oxy.so/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39318
489