Skip to content

Commit b66d9a1

Browse files
committed
Peer-226: Build-fail - Remove unused code, and small ui update
1 parent d2db88d commit b66d9a1

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

frontend/src/components/blocks/interview/chat/chat-layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ export const ChatLayout: React.FC<ChatLayoutProps> = ({
141141
))}
142142
{isLoading && (
143143
<div className='mb-4 flex justify-start'>
144-
<div className='rounded-lg bg-gray-50 px-4 py-2'>
145-
<Loader2 className='size-5 animate-spin text-gray-500' />
146-
</div>
144+
<Loader2 className='size-5 animate-spin text-gray-500' />
147145
</div>
148146
)}
149147
{error && (

frontend/src/components/blocks/interview/chat/chat-message.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,6 @@ interface ChatMessageProps {
1414
message: ChatMessageType;
1515
}
1616

17-
const CodeBlock: React.FC<{ content: string }> = ({ content }) => (
18-
<div className='group relative'>
19-
<pre className='bg-secondary my-4 overflow-x-auto rounded-md p-4 text-sm'>
20-
<code>{content}</code>
21-
</pre>
22-
<button
23-
onClick={() => navigator.clipboard.writeText(content)}
24-
className='bg-secondary/80 absolute right-2 top-2 rounded px-2 py-1 text-xs opacity-0 transition-opacity group-hover:opacity-100'
25-
>
26-
Copy
27-
</button>
28-
</div>
29-
);
30-
3117
export const ChatMessage: React.FC<ChatMessageProps> = ({ message }) => {
3218
return (
3319
<div className={`flex ${message.isUser ? 'justify-end' : 'justify-start'} mb-4`}>

0 commit comments

Comments
 (0)