File tree Expand file tree Collapse file tree
packages/mosaic/src/features/sign-in Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,14 +45,9 @@ function choiceCopy(
4545 step : Extract < SignInStep , { kind : 'choice' } > ,
4646 m : Messages ,
4747) : { title : string ; description : string } {
48- switch ( step . purpose ) {
49- case 'methods' :
50- return { title : m . alternativeMethods . title , description : m . alternativeMethods . description } ;
51- case 'reset-methods' :
52- return { title : m . resetMethods . title , description : m . resetMethods . description } ;
53- case 'enterprise-connections' :
54- return { title : m . enterpriseConnections . title , description : m . enterpriseConnections . description } ;
55- }
48+ return step . purpose === 'reset-methods'
49+ ? { title : m . resetMethods . title , description : m . resetMethods . description }
50+ : { title : m . alternativeMethods . title , description : m . alternativeMethods . description } ;
5651}
5752
5853export function SignInView ( {
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ export function ChoiceStep({
5757 return (
5858 < SignInEnterpriseConnections
5959 focusRef = { focusRef }
60- title = { messages . title }
61- description = { messages . description }
6260 logo = { logo }
6361 connections = { step . options }
6462 globalErrorMessage = { globalErrorMessage }
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ import { styles } from '../sign-in.styles';
1212import type { SignInProvider } from '../sign-in.types' ;
1313
1414interface SignInEnterpriseConnectionsProps {
15- title : string ;
16- description : string ;
1715 logo ?: { src : string ; alt : string } ;
1816 connections : readonly SignInProvider [ ] ;
1917 globalErrorMessage ?: string ;
@@ -24,8 +22,6 @@ interface SignInEnterpriseConnectionsProps {
2422}
2523
2624export function SignInEnterpriseConnections ( {
27- title,
28- description,
2925 logo,
3026 connections,
3127 globalErrorMessage,
@@ -50,8 +46,8 @@ export function SignInEnterpriseConnections({
5046 />
5147 </ Card . Media >
5248 ) : null }
53- < Card . Title > { title } </ Card . Title >
54- < Card . Description > { description } </ Card . Description >
49+ < Card . Title > { m . enterpriseConnections . title } </ Card . Title >
50+ < Card . Description > { m . enterpriseConnections . description } </ Card . Description >
5551 </ Card . Header >
5652 < Card . Banner
5753 role = 'alert'
You can’t perform that action at this time.
0 commit comments