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:
MyPrototypeWhat 2025-09-30 15:07:27 +08:00
parent ec8c24a1c2
commit bebe745e69

View File

@ -73,7 +73,8 @@ export const ProviderAvatarPrimitive: React.FC<ProviderAvatarPrimitiveProps> = (
color,
...style
}}
name={getFirstCharacter(providerName)}
getInitials={getFirstCharacter}
name={providerName}
/>
)
}