From 98d20af8650431c9153e207c32d4846d53e765ec Mon Sep 17 00:00:00 2001 From: viet nguyen Date: Sun, 24 Sep 2023 17:56:02 -0700 Subject: [PATCH] fix: not passing onSubmit.event breaks form --- src/components/basecamp/OrganizationForm.tsx | 3 ++- src/components/basecamp/Organizations.tsx | 3 ++- src/components/basecamp/UserForm.tsx | 3 ++- src/components/basecamp/Users.tsx | 3 ++- src/components/crag/cragSummary.tsx | 3 ++- src/components/edit/AddChildAreaForm.tsx | 3 ++- src/components/edit/DeleteAreaForm.tsx | 3 ++- src/components/edit/EditAreaForm.tsx | 3 ++- src/components/users/account/UpdateProfileForm.tsx | 6 ++---- src/components/users/account/UsernameChangeForm.tsx | 6 ++---- src/pages/climbs/[id].tsx | 3 ++- src/pages/edit/addArea.tsx | 3 ++- 12 files changed, 24 insertions(+), 18 deletions(-) diff --git a/src/components/basecamp/OrganizationForm.tsx b/src/components/basecamp/OrganizationForm.tsx index bfac3dbdd..284ce4e74 100644 --- a/src/components/basecamp/OrganizationForm.tsx +++ b/src/components/basecamp/OrganizationForm.tsx @@ -168,7 +168,8 @@ export default function OrganizationForm ({ existingOrg, onClose }: Organization
-
{ void handleSubmit(submitHandler) }} className='min-w-[16em]'> + {/* eslint-disable-next-line */} + { Create - { void handleSubmit(submitHandler) }} className='flex items-center ml-4'> + {/* eslint-disable-next-line */} +
- { void handleSubmit(submitHandler) }} className='min-w-[16em]'> + {/* eslint-disable-next-line */} + {

Users

- { void handleSubmit(submitHandler) }} className='flex items-center'> + {/* eslint-disable-next-line */} + - { void handleSubmit(submitHandler) }}> + {/* eslint-disable-next-line */} + { return ( - { void handleSubmit(submitHandler) }}> + {/* eslint-disable-next-line */} + - { void handleSubmit(submitHandler) }} className='dialog-form-default'> + {/* eslint-disable-next-line */} +
You're about to delete '{areaName}'. Type DELETE to confirm.
- { void handleSubmit(submitHandler) }} className='dialog-form-default'> + {/* eslint-disable-next-line */} + {

Edit Profile

- { void handleSubmit(submitHandler) }} - className='mt-10 flex flex-col' - > + {/* eslint-disable-next-line */} + {

Change username

)} - { void handleSubmit(submitHandler) }} - className='mt-10 flex flex-col gap-y-6' - > + {/* eslint-disable-next-line */} + {initials != null && } - { void handleSubmit(submitHandler) }} className='mt-6 first:mt-0'> + {/* eslint-disable-next-line */} + {
Area can be a crag, boulder, or a destination containing other smaller areas.
- { void handleSubmit(onSubmit) }}> + {/* eslint-disable-next-line */} +
Location