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