Skip to content

Commit

Permalink
(#72) ๐ŸŽจ design: new line ๋ฐ˜์˜ ๋งํ’์„  ์ปดํฌ๋„ŒํŠธ ์ œ์ž‘
Browse files Browse the repository at this point in the history
  • Loading branch information
inaemon committed Nov 27, 2024
1 parent aea0446 commit 32f8783
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pages/Chatbot/Chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ const Chatbot = () => {
const answerImageUrl = response.imgUrl;
const answerString = response.answer;

console.log(answerImageUrl);
console.log(answerString);

return (
<div>
{/* ์ด๋ฏธ์ง€ ์ถœ๋ ฅ */}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";

interface Props {
messageList: string[]
}

// ์ฑ—๋ด‡ ๋งํ’์„  ์ปดํฌ๋„ŒํŠธ ํƒ€์ž…3. /n(new line) ๋“ฑ์ด ๋ฐ˜์˜๋˜๋„๋ก <pre> ํƒœ๊ทธ๋กœ ๊ฐ์‹ผ ๋งํ’์„ 
const RookieMessage = ({messageList}: Props) => {
return (
<div className="bg-main-0 p-3 rounded-lg text-xs font-regular text-grayscale-90 max-w-xs">
{/** ๋ฉ”์‹œ์ง€ 1์ค„ ์ด์ƒ ๋ฐฐ์—ด๋กœ ๋ฐ›์•„์„œ ์—ฌ๋Ÿฌ pํƒœ๊ทธ๋กœ ๋ฉ”์‹œ์ง€ ์ถœ๋ ฅํ•˜๊ธฐ */}
{messageList.map((message, index) => (
<pre>
<p key={index}>{message}</p>
</pre>
))}
</div>
);
};

export default RookieMessage;

0 comments on commit 32f8783

Please sign in to comment.