mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 06:19:05 +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,
|
color,
|
||||||
...style
|
...style
|
||||||
}}
|
}}
|
||||||
name={getFirstCharacter(providerName)}
|
getInitials={getFirstCharacter}
|
||||||
|
name={providerName}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user