useTeamForm
Overview
useTeamForm is a hook used to handle the logic behind a form relating to creating or editing a team
Usage
const Component = () => {
const {
form,
handleClose,
handleSubmit,
peopleOptions,
membersOptions,
peoplePending
} = useTeamForm({ initialValues })
}
Parameters
initialValues
[ ITeamForm ] ( Optional ): Initial values of the form.
Returns
-
openCreateModal
: A function to open create team modal. -
openEditModal
: A function to open edit team .