Skip to content

Commit 3192f8a

Browse files
committed
Fix: 타입 수정에 따른 코드 변경
1 parent 00756c8 commit 3192f8a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/modal/modalComponents/FolderItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const FolderItem = ({ item }: { item: FolderItemType }) => {
88

99
const bgColor = selected ? "bg-gray100" : "bg-white";
1010

11-
const { title, totalCount } = item;
11+
const { name, linkCount } = item;
1212

1313
const onClickFolder = () => {
1414
setSelected(!selected);
@@ -28,9 +28,9 @@ const FolderItem = ({ item }: { item: FolderItemType }) => {
2828
selected ? "text-purple100" : "text-black300"
2929
)}
3030
>
31-
{title}
31+
{name}
3232
</div>
33-
<div className="text-gray400 text-sm">{totalCount}개 링크</div>
33+
<div className="text-gray400 text-sm">{linkCount}개 링크</div>
3434
</div>
3535
{selected && (
3636
<div>

components/modal/modalManager/ModalManager.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ export const Modal = () => {
3030
<AddModal
3131
list={
3232
props.list || [
33-
{ id: 1, title: "코딩팁", totalCount: 7 },
34-
{ id: 2, title: "채용 사이트", totalCount: 7 },
35-
{ id: 3, title: "유용한 글", totalCount: 7 },
36-
{ id: 4, title: "나만의 장소", totalCount: 7 },
33+
{ id: 1, name: "코딩팁", linkCount: 7, createAt: "" },
34+
{ id: 2, name: "채용 사이트", linkCount: 7, createAt: "" },
35+
{ id: 3, name: "유용한 글", linkCount: 7, createAt: "" },
36+
{ id: 4, name: "나만의 장소", linkCount: 7, createAt: "" },
3737
]
3838
}
3939
/>

0 commit comments

Comments
 (0)