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