Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,5 @@ dist

# Claude Code configuration
CLAUDE.md
.claude//
.claude
.omc

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ import "swiper/css/navigation";
import { useGetAllRetrospects } from "@/hooks/api/retrospect/useApiOptionsGetRetrospects";
import { LoadingSpinner } from "@/component/space/view/LoadingSpinner";
import RetrospectCard from "../RetrospectCard";
import EmptyInProgressRetrospects from "./EmptyInProgressRetrospects";

export default function InProgressRetrospectsWrapper() {
// * 작성중인 모든 회고 리스트 요청
// * 진행 중인 모든 회고 리스트 요청
const { data: retrospects, isPending: isRetrospectsPending } = useGetAllRetrospects({
select: (data) => data.retrospects.filter((retrospect) => retrospect.writeStatus === "PROCEEDING"),
});
Expand All @@ -27,10 +26,10 @@ export default function InProgressRetrospectsWrapper() {
>
{/* ---------- 제목 ---------- */}
<Typography variant="body15Bold" color="gray800">
작성중인 회고 ({retrospects?.length || 0})
진행 중인 회고 ({retrospects?.length || 0})
</Typography>

{/* ---------- 작성중인 회고 컨텐츠 ---------- */}
{/* ---------- 진행 중인 회고 컨텐츠 ---------- */}
<Swiper
modules={[Navigation]}
spaceBetween={12}
Expand Down Expand Up @@ -156,3 +155,22 @@ export default function InProgressRetrospectsWrapper() {
</section>
);
}

function EmptyInProgressRetrospects() {
return (
<div
css={css`
display: flex;
justify-content: center;
align-items: center;
height: 13.8rem;
border-radius: 1.6rem;
background-color: ${DESIGN_TOKEN_COLOR.gray00};
`}
>
<Typography variant="body15Medium" color="gray500">
진행 중인 회고가 없어요
</Typography>
</div>
);
}