@@ -2,7 +2,7 @@ import { SignInFactor } from '@clerk/types';
2
2
import React from 'react' ;
3
3
4
4
import { useCoreSignIn } from '../../ui/contexts/' ;
5
- import { descriptors , Flex , Flow } from '../customizables' ;
5
+ import { Col , descriptors , Flow , localizationKeys } from '../customizables' ;
6
6
import { ArrowBlockButton , Card , CardAlert , Footer , Header } from '../elements' ;
7
7
import { useCardState } from '../elements/contexts' ;
8
8
import { formatSafeIdentifier } from '../utils' ;
@@ -41,18 +41,14 @@ const AlternativeMethodsList = (props: AlternativeMethodsProps & { onHavingTroub
41
41
< CardAlert > { card . error } </ CardAlert >
42
42
< Header . Root >
43
43
{ onBackLinkClick && < Header . BackLink onClick = { onBackLinkClick } /> }
44
- < Header . Title > Use another method </ Header . Title >
44
+ < Header . Title localizationKey = { localizationKeys ( 'signIn.alternativeMethods.title' ) } / >
45
45
</ Header . Root >
46
46
{ /*TODO: extract main in its own component */ }
47
- < Flex
48
- direction = 'col'
47
+ < Col
49
48
elementDescriptor = { descriptors . main }
50
49
gap = { 8 }
51
50
>
52
- < Flex
53
- direction = 'col'
54
- gap = { 2 }
55
- >
51
+ < Col gap = { 2 } >
56
52
{ supportedSecondFactors . map ( ( factor , i ) => (
57
53
< ArrowBlockButton
58
54
key = { i }
@@ -62,11 +58,14 @@ const AlternativeMethodsList = (props: AlternativeMethodsProps & { onHavingTroub
62
58
{ getButtonLabel ( factor ) }
63
59
</ ArrowBlockButton >
64
60
) ) }
65
- </ Flex >
66
- </ Flex >
61
+ </ Col >
62
+ </ Col >
67
63
< Footer . Root >
68
64
< Footer . Action >
69
- < Footer . ActionLink onClick = { onHavingTroubleClick } > Get help</ Footer . ActionLink >
65
+ < Footer . ActionLink
66
+ localizationKey = { localizationKeys ( 'signIn.alternativeMethods.actionLink' ) }
67
+ onClick = { onHavingTroubleClick }
68
+ />
70
69
</ Footer . Action >
71
70
< Footer . Links />
72
71
</ Footer . Root >
0 commit comments