Skip to content

Commit

Permalink
fix: 답변이 없을 때 답변이 없다는 내용 표시
Browse files Browse the repository at this point in the history
  • Loading branch information
hawa-takakura committed Dec 20, 2024
1 parent 1efd546 commit f73b119
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/main/user/[handle]/[answer]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function SingleAnswer() {

return (
<div className="flex w-[90%] window:w-[80%] desktop:w-[70%]">
{answerBody && (
{answerBody ? (
<>
<Answer value={answerBody} id={answerBody.id} ref={singleQuestionDeleteModalRef} />
<DialogModalTwoButton
Expand Down Expand Up @@ -73,6 +73,10 @@ export default function SingleAnswer() {
</div>
</div>
</>
) : (
<div className="w-full text-2xl flex gap-2 justify-center items-center border shadow rounded-box p-4 glass">
<span>찾으시는 답변이 없어요!</span>
</div>
)}
</div>
);
Expand Down

0 comments on commit f73b119

Please sign in to comment.