Fix TS lint error caused by a React typing change
This commit is contained in:
+2
-2
@@ -52,8 +52,8 @@ export const ConfirmationModal: React.FC<
|
||||
noCloseOnConfirm = false,
|
||||
noFocusButton = false,
|
||||
}) => {
|
||||
const handleSubmit = useCallback<React.SubmitEventHandler<HTMLFormElement>>(
|
||||
(e) => {
|
||||
const handleSubmit = useCallback(
|
||||
(e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
|
||||
if (!noCloseOnConfirm) {
|
||||
|
||||
Reference in New Issue
Block a user