Fixed: added missing useCallback import #311

Closed
pramod.mahajan wants to merge 138 commits from hotfix/MasterActivity into main
Showing only changes of commit de86544a7d - Show all commits

View File

@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react"; import React, { useState, useEffect, useCallback } from "react";
import { useFieldArray, useForm } from "react-hook-form"; import { useFieldArray, useForm } from "react-hook-form";
import { z } from "zod"; import { z } from "zod";
import { zodResolver } from "@hookform/resolvers/zod"; import { zodResolver } from "@hookform/resolvers/zod";
@ -26,7 +26,6 @@ const schema = z.object({
const CreateActivity = ({ onClose }) => { const CreateActivity = ({ onClose }) => {
const maxDescriptionLength = 255; const maxDescriptionLength = 255;
const { mutate: createActivity, isPending: isLoading } = useCreateActivity(() => onClose?.()); const { mutate: createActivity, isPending: isLoading } = useCreateActivity(() => onClose?.());
const { const {
register, register,
handleSubmit, handleSubmit,