File tree 1 file changed +3
-3
lines changed
site/src/components/Dialogs/DeleteDialog 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export const DeleteDialog: FC<PropsWithChildren<DeleteDialogProps>> = ({
46
46
const confirmationId = `${ hookId } -${ DeleteDialog . name } -confirm` ;
47
47
const hasError = ! deletionConfirmed && confirmationText . length > 0 ;
48
48
const displayErrorMessage = hasError && ! isFocused ;
49
- const color = hasError ? "error" : "primary" ;
49
+ const inputColor = hasError ? "error" : "primary" ;
50
50
51
51
return (
52
52
< ConfirmDialog
@@ -86,13 +86,13 @@ export const DeleteDialog: FC<PropsWithChildren<DeleteDialogProps>> = ({
86
86
onFocus = { ( ) => setIsFocused ( true ) }
87
87
onBlur = { ( ) => setIsFocused ( false ) }
88
88
label = { `Name of the ${ entity } to delete` }
89
- color = { color }
89
+ color = { inputColor }
90
90
error = { displayErrorMessage }
91
91
helperText = {
92
92
displayErrorMessage &&
93
93
`${ confirmationText } does not match the name of this ${ entity } `
94
94
}
95
- InputProps = { { color } }
95
+ InputProps = { { color : inputColor } }
96
96
inputProps = { {
97
97
[ "data-testid" ] : "delete-dialog-name-confirmation" ,
98
98
} }
You can’t perform that action at this time.
0 commit comments