Skip to content

Commit

Permalink
[#31] 툴 리스트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
chaduhwan committed Apr 8, 2024
1 parent 70bf37d commit aa528cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion app/(route)/list/_components/nav/LIstCompo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ function ListCompo() {
<div>
<div className={S.wrapper}>
{resData?.map((data: Tool, index) => {
return <ToolCard title="" subTitle="" description="" toolImg="" />
return (
<ToolCard
title={data?.title || ''}
subTitle={data?.subTitle || ''}
description={data?.description || ''}
toolImg={data?.toolImg || ''}
toolId={index}
company={data?.company}
/>
)
})}
<span>데이터를 모두 불러왔습니다.</span>
</div>
</div>
)
Expand Down
3 changes: 1 addition & 2 deletions app/(route)/list/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ function List() {
return (
<div>
<Nav title="검증 툴 리스트" />
<ListCompo></ListCompo>
<span>데이터를 모두 불러왔습니다.</span>
<ListCompo />
</div>
)
}
Expand Down
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const nextConfig = {
domains: [
'github.com',
'stlab-storage-main.s3.ap-northeast-2.amazonaws.com',
'primus-storage-main.s3.ap-northeast-2.amazonaws.com',
], // 이미지 호스트를 여기에 추가합니다.
},
}
Expand Down

0 comments on commit aa528cb

Please sign in to comment.