mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-27 13:48:51 +01:00
feat: Replace renderAgentAvatar function with AgentAvatar component for improved avatar rendering
This commit is contained in:
parent
7a872b1027
commit
40871fa670
1 changed files with 4 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ import {
|
|||
} from 'librechat-data-provider';
|
||||
import type t from 'librechat-data-provider';
|
||||
import { useLocalize, useDefaultConvo, useFavorites } from '~/hooks';
|
||||
import { renderAgentAvatar, clearMessagesCache } from '~/utils';
|
||||
import { AgentAvatar, clearMessagesCache } from '~/utils';
|
||||
import { useChatContext } from '~/Providers';
|
||||
|
||||
interface SupportContact {
|
||||
|
|
@ -140,7 +140,9 @@ const AgentDetailContent: React.FC<AgentDetailContentProps> = ({ agent }) => {
|
|||
return (
|
||||
<OGDialogContent className="max-h-[90vh] w-11/12 max-w-lg overflow-y-auto">
|
||||
{/* Agent avatar */}
|
||||
<div className="mt-6 flex justify-center">{renderAgentAvatar(agent, { size: 'xl' })}</div>
|
||||
<div className="mt-6 flex justify-center">
|
||||
<AgentAvatar agent={agent} size="xl" />
|
||||
</div>
|
||||
|
||||
{/* Agent name */}
|
||||
<div className="mt-3 text-center">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue