mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 18:39:06 +08:00
refactor(ProviderAvatar): update props for clarity and consistency
- Changed the `name` prop to directly use `providerName` for better readability. - Updated the `getInitials` prop to use `getFirstCharacter` for improved clarity in the component's functionality. These changes enhance the maintainability and understanding of the ProviderAvatar component.
This commit is contained in:
parent
ec8c24a1c2
commit
bebe745e69
@ -73,7 +73,8 @@ export const ProviderAvatarPrimitive: React.FC<ProviderAvatarPrimitiveProps> = (
|
||||
color,
|
||||
...style
|
||||
}}
|
||||
name={getFirstCharacter(providerName)}
|
||||
getInitials={getFirstCharacter}
|
||||
name={providerName}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user