@oxyhq/services
Advanced tools
Comparing version 0.0.7 to 0.0.8
import React from "react"; | ||
export declare const SignInButton: ({ onClick, icon, text, }: { | ||
onClick?: () => void; | ||
export declare const SignInButton: ({ icon, text, }: { | ||
icon?: React.ReactNode; | ||
@@ -5,0 +4,0 @@ text: string; |
import React from "react"; | ||
export const SignInButton = ({ onClick, icon, text = "Sign in with Oxy", }) => { | ||
export const SignInButton = ({ icon, text = "Sign in with Oxy", }) => { | ||
const onClick = () => { | ||
const currentUrl = window.location.href; | ||
const redirectUrl = `https://auth.oxy.so/?callback=${encodeURIComponent(currentUrl)}`; | ||
window.location.href = redirectUrl; | ||
}; | ||
return (React.createElement("button", { onClick: onClick, style: styles.container }, | ||
@@ -4,0 +9,0 @@ icon && icon, |
{ | ||
"name": "@oxyhq/services", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"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
17437
366