@@ -40,7 +40,7 @@ interface OutdialANIEntry {
4040 * @property startOutdial - Function to initiate the outdial call with the entered destination number.
4141 */
4242const OutdialCallComponent : React . FunctionComponent < OutdialCallComponentProps > = ( props ) => {
43- const { startOutdial, getOutdialANIEntries} = props ;
43+ const { logger , startOutdial, getOutdialANIEntries} = props ;
4444
4545 // State Hooks
4646 const [ destination , setDestination ] = useState ( '' ) ;
@@ -62,7 +62,7 @@ const OutdialCallComponent: React.FunctionComponent<OutdialCallComponentProps> =
6262 const result = await getOutdialANIEntries ( ) ;
6363 setOutdialANIList ( result ) ;
6464 } catch ( error ) {
65- console . error ( 'Error fetching outdial ANI entries:' , error ) ;
65+ logger ? .error ( 'Error fetching outdial ANI entries:' , error ) ;
6666 setOutdialANIList ( [ ] ) ;
6767 }
6868 } ;
@@ -83,11 +83,11 @@ const OutdialCallComponent: React.FunctionComponent<OutdialCallComponentProps> =
8383 } ;
8484
8585 /**
86- * handleKeyPress
86+ * handleOnClick
8787 * @param value The key value pressed
8888 * Appends the pressed key to the destination input field
8989 */
90- const handleKeyPress = ( value : string ) => {
90+ const handleOnClick = ( value : string ) => {
9191 setDestination ( destination + value ) ;
9292 validateOutboundNumber ( destination + value ) ;
9393 } ;
@@ -105,7 +105,7 @@ const OutdialCallComponent: React.FunctionComponent<OutdialCallComponentProps> =
105105 > </ Tab >
106106 </ header >
107107 < Input
108- className = "input"
108+ className = "outdial- input"
109109 id = "outdial-number-input"
110110 name = "outdial-number-input"
111111 data-testid = "outdial-number-input"
@@ -122,14 +122,14 @@ const OutdialCallComponent: React.FunctionComponent<OutdialCallComponentProps> =
122122 < ul className = "keys" >
123123 { KEY_LIST . map ( ( key ) => (
124124 < li key = { key } >
125- < Button className = "key button" onClick = { ( ) => handleKeyPress ( key ) } >
125+ < Button className = "key button" onClick = { ( ) => handleOnClick ( key ) } >
126126 { key }
127127 </ Button >
128128 </ li >
129129 ) ) }
130130 </ ul >
131131 < Select
132- className = "input"
132+ className = "outdial- input"
133133 label = { OutdialStrings . ANI_SELECT_LABEL }
134134 id = "outdial-ani-option"
135135 name = "outdial-ani-option-select"
@@ -155,10 +155,10 @@ const OutdialCallComponent: React.FunctionComponent<OutdialCallComponentProps> =
155155 </ Select >
156156 < Button
157157 data-testid = "outdial-call-button"
158- className = "button"
159158 prefixIcon = { 'handset-regular' }
160159 onClick = { ( ) => startOutdial ( destination , selectedANI ) }
161160 disabled = { ! ! isValidNumber || ! destination }
161+ size = { 40 }
162162 />
163163 </ article >
164164 ) ;
0 commit comments