初次提交
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export const getProviderDisplayName = (provider: string): string => {
|
||||
const map: Record<string, string> = {
|
||||
github: 'GitHub',
|
||||
casdoor: 'Casdoor',
|
||||
google: 'Google'
|
||||
}
|
||||
return map[provider.toLowerCase()] || provider.charAt(0).toUpperCase() + provider.slice(1)
|
||||
}
|
||||
Reference in New Issue
Block a user