Add Link API.

This commit is contained in:
Yang Luo
2021-04-19 01:14:41 +08:00
parent 6774b0379c
commit 36895801f0
14 changed files with 143 additions and 43 deletions

View File

@ -172,7 +172,8 @@ export function getClickable(text) {
)
}
export function getIdpLogo(idp) {
export function getProviderLogo(provider) {
const idp = provider.type.toLowerCase();
const url = `https://cdn.jsdelivr.net/gh/casbin/static/img/social_${idp}.png`;
return (
<img width={30} height={30} src={url} alt={idp} />