Skip to content

Commit

Permalink
#115 style: 챌린지 블록과 일반 블록 UI 구분 (진행중, 완료, 삭제 상태)
Browse files Browse the repository at this point in the history
  • Loading branch information
MyungJiwoo committed Nov 27, 2024
1 parent 5e7c48d commit dcb568e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/CompletedDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const CompletedDashboard = ({ list, id, dashboardId, onLoadMore }: Props) => {
picture={block.picture ?? ''}
progress={settings.progress ?? ''}
highlightColor={settings.highlightColor ?? ''}
type={block.type ?? ''}
/>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion src/components/DeleteButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DeleteButton = ({ id, list, removeValue }: Props) => {
<S.BoxContainer>
{list.map(
(
{ title, blockId, contents, dDay, dashboardId, dType, nickname, picture },
{ title, blockId, contents, dDay, dashboardId, dType, nickname, picture, type },
index
) => (
<S.BlockEntireContainer key={index}>
Expand All @@ -50,6 +50,7 @@ const DeleteButton = ({ id, list, removeValue }: Props) => {
dType={dType}
name={nickname}
picture={picture}
type={type ?? ''}
/>
</S.BlockEntireContainer>
)
Expand Down
1 change: 1 addition & 0 deletions src/components/InProgressDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const InProgressDashboard = ({ list, id, dashboardId, onLoadMore }: Props) => {
picture={block.picture ?? ''}
progress={settings.progress ?? ''}
highlightColor={settings.highlightColor ?? ''}
type={block.type ?? ''}
/>
</div>
);
Expand Down

0 comments on commit dcb568e

Please sign in to comment.