File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
packages/react/src/components/Auth Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export const Icons = ({ provider }: IconsProps) => {
22
22
if ( provider == 'azure' ) return azure ( )
23
23
if ( provider == 'keycloak' ) return keycloak ( )
24
24
if ( provider == 'linkedin' ) return linkedin ( )
25
+ if ( provider == 'linkedin_oidc' ) return linkedin ( )
25
26
if ( provider == 'notion' ) return notion ( )
26
27
if ( provider == 'slack' ) return slack ( )
27
28
if ( provider == 'spotify' ) return spotify ( )
Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ function SocialAuth({
58
58
setLoading ( false )
59
59
}
60
60
61
+ function handleProviderNameEdgeCases ( provider : string ) {
62
+ if ( provider === 'linkedin_oidc' ) {
63
+ return 'LinkedIn'
64
+ }
65
+ return provider
66
+ }
67
+
61
68
function capitalize ( word : string ) {
62
69
const lower = word . toLowerCase ( )
63
70
return word . charAt ( 0 ) . toUpperCase ( ) + lower . slice ( 1 )
@@ -87,7 +94,9 @@ function SocialAuth({
87
94
template (
88
95
i18n ?. [ currentView ] ?. social_provider_text as string ,
89
96
{
90
- provider : capitalize ( provider ) ,
97
+ provider : capitalize (
98
+ handleProviderNameEdgeCases ( provider )
99
+ ) ,
91
100
}
92
101
) }
93
102
</ Button >
You can’t perform that action at this time.
0 commit comments