@@ -57,12 +57,11 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
5757 const [ showCCSignOutModal , setShowCCSignOutModal ] = useState < boolean > ( false ) ;
5858 const [ showDNError , setShowDNError ] = useState < boolean > ( false ) ;
5959 const [ dnErrorText , setDNErrorText ] = useState < string > ( '' ) ;
60- const { multiSignInModalRef, ccSignOutModalRef, saveConfirmDialogRef} = createStationLoginRefs ( ) ;
60+ const { multiSignInModalRef, ccSignOutModalRef, saveConfirmDialogRef} = createStationLoginRefs ( logger ) ;
6161
6262 useEffect ( ( ) => {
6363 if ( deviceType !== DESKTOP && Object . keys ( LoginOptions ) . includes ( deviceType ) ) {
64- setDialNumberLabel ( LoginOptions [ deviceType ] ) ;
65- setDialNumberPlaceholder ( LoginOptions [ deviceType ] ) ;
64+ updateDialNumberLabel ( deviceType , setDialNumberLabel , setDialNumberPlaceholder , logger ) ;
6665 }
6766 } , [ selectedDeviceType , isAgentLoggedIn ] ) ;
6867
@@ -74,7 +73,8 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
7473 saveConfirmDialogRef ,
7574 showMultipleLoginAlert ,
7675 showCCSignOutModal ,
77- showSaveConfirmDialog
76+ showSaveConfirmDialog ,
77+ logger
7878 ) ;
7979 } , [ showMultipleLoginAlert , showCCSignOutModal , showSaveConfirmDialog ] ) ;
8080
@@ -92,7 +92,7 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
9292 < Button
9393 id = "ContinueButton"
9494 data-testid = "ContinueButton"
95- onClick = { ( ) => continueClicked ( multiSignInModalRef , handleContinue , setShowCCSignOutModal ) }
95+ onClick = { ( ) => continueClicked ( multiSignInModalRef , handleContinue , setShowCCSignOutModal , logger ) }
9696 variant = "secondary"
9797 className = "white-button"
9898 >
@@ -105,7 +105,7 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
105105 ref = { ccSignOutModalRef }
106106 className = "dialog-modal"
107107 data-testid = "cc-logout-modal"
108- onKeyDown = { ( e ) => handleCCSignoutKeyDown ( e , setShowCCSignOutModal ) }
108+ onKeyDown = { ( e ) => handleCCSignoutKeyDown ( e , setShowCCSignOutModal , logger ) }
109109 >
110110 < Text tagname = "h2" type = "body-large-bold" className = "modal-text" >
111111 { StationLoginLabels . CC_SIGN_OUT }
@@ -115,7 +115,7 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
115115 </ Text >
116116 < div className = "dialog-modal-content" >
117117 < Button
118- onClick = { ( ) => ccCancelButtonClicked ( ccSignOutModalRef , setShowCCSignOutModal ) }
118+ onClick = { ( ) => ccCancelButtonClicked ( ccSignOutModalRef , setShowCCSignOutModal , logger ) }
119119 variant = "secondary"
120120 className = "white-button"
121121 data-testId = "cc-cancel-button"
@@ -124,7 +124,7 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
124124 </ Button >
125125 < Button
126126 data-testId = "cc-logout-button"
127- onClick = { ( ) => continueClicked ( ccSignOutModalRef , onCCSignOut , setShowCCSignOutModal ) }
127+ onClick = { ( ) => continueClicked ( ccSignOutModalRef , onCCSignOut , setShowCCSignOutModal , logger ) }
128128 >
129129 { StationLoginLabels . SIGN_OUT }
130130 </ Button >
@@ -145,7 +145,7 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
145145 type = "button"
146146 role = "button"
147147 aria-label = "Close"
148- onClick = { ( ) => saveConfirmCancelClicked ( saveConfirmDialogRef , setShowSaveConfirmDialog ) }
148+ onClick = { ( ) => saveConfirmCancelClicked ( saveConfirmDialogRef , setShowSaveConfirmDialog , logger ) }
149149 className = "cancelSaveLoginOptions"
150150 > </ Button >
151151 </ div >
@@ -154,13 +154,15 @@ const StationLoginComponent: React.FunctionComponent<StationLoginComponentProps>
154154 </ Text >
155155 < div className = "dialog-modal-content" >
156156 < Button
157- onClick = { ( ) => saveConfirmCancelClicked ( saveConfirmDialogRef , setShowSaveConfirmDialog ) }
157+ onClick = { ( ) => saveConfirmCancelClicked ( saveConfirmDialogRef , setShowSaveConfirmDialog , logger ) }
158158 variant = "secondary"
159159 className = "white-button"
160160 >
161161 { StationLoginLabels . CANCEL }
162162 </ Button >
163- < Button onClick = { ( ) => handleSaveConfirm ( saveConfirmDialogRef , setShowSaveConfirmDialog , saveLoginOptions ) } >
163+ < Button
164+ onClick = { ( ) => handleSaveConfirm ( saveConfirmDialogRef , setShowSaveConfirmDialog , saveLoginOptions , logger ) }
165+ >
164166 { StationLoginLabels . CONFIRM }
165167 </ Button >
166168 </ div >
0 commit comments