Skip to content

Commit

Permalink
Merge pull request #122 from AkshataKatwal16/admin
Browse files Browse the repository at this point in the history
Issue feat: set submitted button status for team leader
  • Loading branch information
itsvick authored Aug 10, 2024
2 parents a01ae10 + 726a15d commit 60c0fdd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/teamLeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ import UserTable from "@/components/UserTable";
import { useTranslation } from "next-i18next";
import { Role, FormContextType } from "@/utils/app.constant";
import CommonUserModal from "@/components/CommonUserModal";
import useSubmittedButtonStore from "@/utils/useSharedState";

const TeamLeader: React.FC = () => {
const { t } = useTranslation();
const handleAddTeamLeaderClick = () => {
handleOpenAddTeamLeaderModal();
};
const [submitValue, setSubmitValue] = React.useState<boolean>(false);
const setSubmittedButtonStatus = useSubmittedButtonStore((state:any) => state.setSubmittedButtonStatus);

const [openAddTeamLeaderModal, setOpenAddTeamLeaderModal] =
React.useState(false);
Expand All @@ -20,6 +23,8 @@ const TeamLeader: React.FC = () => {
setSubmitValue(true);
};
const handleCloseAddTeamLeaderModal = () => {
setSubmittedButtonStatus(false)

setOpenAddTeamLeaderModal(false);
};

Expand Down

0 comments on commit 60c0fdd

Please sign in to comment.