-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-FE' of https://github.com/woowacourse-teams/202…
…3-map-befine into refactor/#593-swiper
- Loading branch information
Showing
10 changed files
with
634 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import SingleComment from './SingleComment'; | ||
|
||
interface ReplyCommentProps { | ||
commentList: Comment[]; | ||
pageTotalCommentList: Comment[]; | ||
depth: number; | ||
refetch: (pinId: number) => Promise<Comment[]>; | ||
} | ||
|
||
function ReplyComment({ | ||
commentList, | ||
pageTotalCommentList, | ||
depth, | ||
refetch, | ||
}: ReplyCommentProps) { | ||
if (depth === 2) return null; | ||
return ( | ||
<> | ||
{commentList.length > 0 && | ||
commentList.map((comment) => ( | ||
<> | ||
<SingleComment | ||
comment={comment} | ||
commentList={commentList} | ||
totalList={pageTotalCommentList} | ||
depth={depth} | ||
refetch={refetch} | ||
/> | ||
</> | ||
))} | ||
</> | ||
); | ||
} | ||
|
||
export default ReplyComment; |
Oops, something went wrong.