Skip to content

Commit

Permalink
(#72) ๐ŸŽจ design: ๋ฃจํ‚ค ์ฑ„ํŒ… ์…‹ ์ปดํฌ๋„ŒํŠธ์— ์ด๋ฏธ์ง€ ๋งํ’์„  ํƒ€์ž… ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
inaemon committed Nov 27, 2024
1 parent 078daee commit f83df66
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/pages/Chatbot/components/RookieChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import RookieMessageWithTail from "./message/RookieMessageWithTail";
import RookieMessage from "./message/RookieMessage";
import RookiePreformattedMessageWithTail from "@/src/pages/Chatbot/components/message/custom/RookiePreformattedMessageWithTail";
import RookiePreformattedMessage from "@/src/pages/Chatbot/components/message/custom/RookiePreformattedMessage";
import RookieImageMessage from "@/src/pages/Chatbot/components/message/custom/RookieImageMessage";

import { questionCategories } from "@/src/constants/ChatbotData";

Expand Down Expand Up @@ -52,12 +53,9 @@ const RookieChat = ({initialMessage, initialPreformattedMessage, contentList}: R
contentList.map((item, index) => {
if (item.type === "image") {
return (
<img
key={index}
src={item.content}
alt={`์ฑ—๋ด‡ ์ด๋ฏธ์ง€ ${index + 1}`}
className="w-[70%] h-auto rounded-md object-cover"
/>
<div key={index}>
<RookieImageMessage imgUrl={item.content} />
</div>
);

// ์ปดํฌ๋„ŒํŠธ์ธ ๊ฒฝ์šฐ: ์ปดํฌ๋„ŒํŠธ(item) ๊ทธ๋Œ€๋กœ ๋ฐ˜ํ™˜
Expand Down

0 comments on commit f83df66

Please sign in to comment.