diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 258c0242..8746f5de 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -11,41 +11,36 @@ const ConversationBubble = forwardRef< className?: string; } >(function ConversationBubble({ message, type, className }, ref) { - return ( -
- -
- {type === 'ERROR' && ( - alert - )} -

{message}

+ let bubble; + if (type === 'QUESTION') { + bubble = ( +
+ +
+

{message}

+
-
- ); + ); + } else { + bubble = ( +
+ +
+ {type === 'ERROR' && ( + alert + )} +

{message}

+
+
+ ); + } + return bubble; }); export default ConversationBubble; - -// TODO : split question and answer into two diff JSX