'./hooks/useCreateRoomType';
function CreateRoomTypeForm() {
const { createRoomType } = useCreateRoomType();
const isWorking = false
const btnDisable = false;
const {
register,
handleSubmit,
reset,
formState: { errors },
} = useForm();
function handleResetForm(){
reset()
}
function onSubmit(data) {
createRoomType(
{ ...data},
{
onSuccess: () => {
reset();
onCloseModal?.();
},
},
);
}
Стикер
Обсуждают сегодня