Skip to content

Commit

Permalink
[feat] #68, #56 댓글, 대댓글 기능 구현 중
Browse files Browse the repository at this point in the history
  • Loading branch information
kr-nius committed Nov 29, 2023
1 parent 06020a3 commit e488757
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions src/app/detail/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export default function Detail(): JSX.Element {
try {
const response = await axios.get(
// 메인용
`https://www.jerneithe.site/board/detail/${boardDetail.boardId}`
`https://www.jerneithe.site/board/detail/${boardDetail.boardId}`,
// 테스트용
// "https://www.jerneithe.site/board/detail/1"
{ headers: { Authorization: "Bearer " + accessToken } },
{ headers: { Authorization: "Bearer " + accessToken } }
);
setBoardDetail(response.data);
} catch (error) {
Expand Down Expand Up @@ -110,7 +110,8 @@ export default function Detail(): JSX.Element {
{decoded_nickName === boardDetail.nickName && (
<div
onClick={toggleDropdown}
className="ml-auto flex flex-col items-center">
className="ml-auto flex flex-col items-center"
>
<Image
src="/images/more.svg"
alt="etc"
Expand All @@ -122,12 +123,14 @@ export default function Detail(): JSX.Element {
<div className="dropdown absolute mt-7 z-10">
<button
onClick={handleEdit}
className="block w-full text-left py-2 px-4 hover:bg-gray-200 focus:outline-none">
className="block w-full text-left py-2 px-4 hover:bg-gray-200 focus:outline-none"
>
수정
</button>
<button
onClick={handleDelete}
className="block w-full text-left py-2 px-4 hover:bg-gray-200 focus:outline-none">
className="block w-full text-left py-2 px-4 hover:bg-gray-200 focus:outline-none"
>
삭제
</button>
</div>
Expand All @@ -145,12 +148,11 @@ export default function Detail(): JSX.Element {
<div className="button flex">
<Like />
<CommentIcon />

</div>
</>
)}
</section>

<Menubar />
</div>
// </RecoilRoot>
Expand Down

0 comments on commit e488757

Please sign in to comment.