mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-12 17:35:34 -05:00
Fix TS lint error caused by a React typing change
This commit is contained in:
@@ -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