[Glitch] Fix TS lint error caused by a React typing change
Port ac385af2f4b4797448f714778ca5efc44a2ea7bb to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
d1e870cd5b
commit
dab63149d0
@ -60,8 +60,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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user