mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Use a href for oauth icon.
This commit is contained in:
parent
15f9d71127
commit
46fb2b4bff
@ -128,10 +128,9 @@ class Face extends React.Component {
|
||||
{
|
||||
this.getApplicationObj().providerObjs.map(provider => {
|
||||
return (
|
||||
<img width={30} height={30} src={Provider.getAuthLogo(provider)} alt={provider.displayName} style={{cursor: "pointer", margin: "3px"}} onClick={() => {
|
||||
window.location.href = Provider.getAuthUrl(provider, "signup");
|
||||
}}
|
||||
/>
|
||||
<a href={Provider.getAuthUrl(provider, "signup")}>
|
||||
<img width={30} height={30} src={Provider.getAuthLogo(provider)} alt={provider.displayName} style={{margin: "3px"}} />
|
||||
</a>
|
||||
);
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user