@oxyhq/services
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -7,4 +7,4 @@ import React from "react"; | ||
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]" }, | ||
React.createElement("button", { onClick: () => setDisplayUserInfo((prev) => false), className: "absolute right-3 top-3 rounded-full bg-darkC2 p-1 hover:bg-darkC" }), | ||
return (React.createElement("div", { className: "fixed z-10 flex flex-col items-center justify-center\n space-y-3 rounded-2xl bg-dark px-5 py-3 text-sm font-medium text-textC\n shadow-md shadow-[#b4bebb]" }, | ||
React.createElement("button", { onClick: () => setDisplayUserInfo((prev) => false), className: "absolute right-3 top-3 rounded-full bg-dark p-1 hover:bg-dark" }), | ||
React.createElement("p", null, session?.user?.email), | ||
@@ -19,5 +19,5 @@ React.createElement("div", { className: "h-20 w-20 rounded-full border" }, | ||
React.createElement("div", { className: "flex space-x-1" }, | ||
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" }, | ||
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-dark" }, | ||
React.createElement("span", null, "Add account")), | ||
React.createElement("button", { onClick: () => signOut(), className: "tablet:w-44 flex w-36 items-center space-x-2 rounded-r-full bg-white py-3 pl-3 hover:bg-darkC" }, | ||
React.createElement("button", { onClick: () => signOut(), className: "tablet:w-44 flex w-36 items-center space-x-2 rounded-r-full bg-white py-3 pl-3 hover:bg-dark" }, | ||
React.createElement("span", null, "Sign out"))), | ||
@@ -24,0 +24,0 @@ React.createElement("div", { className: "flex h-10 items-center space-x-2 text-xs" }, |
import React from "react"; | ||
import styles from "./sign-in-button.module.css"; | ||
import styles from "./styles/sign-in-button.module.css"; | ||
import { OxyLogo } from "../assets/oxy-logo"; | ||
@@ -4,0 +4,0 @@ export const SignInButton = ({ icon = React.createElement(OxyLogo, null), text = "Sign in with Oxy", callback = window.location.href, }) => { |
@@ -5,3 +5,4 @@ import useOxySession from "./hooks/useOxySession"; | ||
import AccountSwitcher from "./components/auth/AccountSwitcher"; | ||
export { useOxySession, getUserById, SignInButton, AccountSwitcher }; | ||
import OAvatar from "./components/auth/OAvatar"; | ||
export { useOxySession, getUserById, SignInButton, AccountSwitcher, OAvatar }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,3 @@ import useOxySession from "./hooks/useOxySession"; | ||
import AccountSwitcher from "./components/auth/AccountSwitcher"; | ||
export { useOxySession, getUserById, SignInButton, AccountSwitcher }; | ||
import OAvatar from "./components/auth/OAvatar"; | ||
export { useOxySession, getUserById, SignInButton, AccountSwitcher, OAvatar }; |
{ | ||
"name": "@oxyhq/services", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "https://oxy.so/", |
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
42916
44
578