Skip to content

Commit

Permalink
feat: 완료된 스토리 페이지에서는 태스크를 생성할 수 없도록 함
Browse files Browse the repository at this point in the history
  • Loading branch information
surinkwon committed Jul 29, 2024
1 parent c21aa12 commit 5105635
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/backlog/StoryBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ interface StoryBlockProps {
children: React.ReactNode;
taskExist: boolean;
epicList: EpicCategoryDTO[];
finished?: boolean;
}

const StoryBlock = ({
Expand All @@ -41,6 +42,7 @@ const StoryBlock = ({
status,
taskExist,
epicList,
finished = false,
children,
}: StoryBlockProps) => {
const { socket }: { socket: Socket } = useOutletContext();
Expand Down Expand Up @@ -277,7 +279,7 @@ const StoryBlock = ({
<TaskContainer>
<TaskHeader />
{children}
<TaskCreateBlock storyId={id} />
{!finished && <TaskCreateBlock storyId={id} />}
</TaskContainer>
)}
</>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/backlog/FinishedStoryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const FinishedStoryPage = () => {
progress={progress}
taskExist={taskList.length > 0}
epicList={epicCategoryList}
finished={true}
>
{...taskList.map((task) => <TaskBlock {...task} />)}
</StoryBlock>
Expand Down

0 comments on commit 5105635

Please sign in to comment.