Skip to content

Commit

Permalink
[FIX] 출석체크가 진행 중인 상황에서, 멤버들의 출석 상태 변경 불가능하게 구현
Browse files Browse the repository at this point in the history
출석체크가 진행 중인 상황에서, 멤버들의 출석 상태 변경 불가능하게 수정하였습니다.
  • Loading branch information
geongyu09 authored Oct 2, 2024
2 parents 5a183a6 + 1517a70 commit 8394be5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions FE/src/components/programEdit/ParticipantStateSection.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import MemberTableWrapper from "../common/memberTable/MemberTableWrapper";
import { useGetProgramByProgramId } from "@/hooks/query/useProgramQuery";
import MemberActiveStatusTab from "../common/tabs/MemberActiveStatusTab";
import AttendStateTable from "./AttendStateTable/AttendStateTable";

Expand All @@ -11,6 +11,11 @@ const ParticipantStateSection = ({
programId,
setMembers,
}: ParticipantStateSectionProps) => {
const { data: programData } = useGetProgramByProgramId(programId, true);

const isEnableEdit =
programData?.attendMode !== "attend" && programData?.attendMode !== "late";

return (
<section>
<MemberActiveStatusTab>
Expand All @@ -19,7 +24,7 @@ const ParticipantStateSection = ({
<AttendStateTable
programId={programId}
selectedActive={selectedItem}
isEnableEdit={true}
isEnableEdit={isEnableEdit}
setMembers={setMembers}
/>
</div>
Expand Down

0 comments on commit 8394be5

Please sign in to comment.