refactor: changed component name for better readability

This commit is contained in:
Ashraf
2023-12-29 19:29:13 +08:00
parent cf5841a895
commit ce67de9a1c
3 changed files with 8 additions and 7 deletions

View File

@ -13,14 +13,15 @@ import {
import { StackAvatars } from './stack-avatars';
import { StackAvatarsComponent } from './stack-avatars-component';
export type StackAvatarsWithUIProps = {
export type StackAvatarsUIProps = {
recipients: Recipient[];
position?: 'top' | 'bottom';
children?: React.ReactNode;
};
export const StackAvatarsWithUI = ({ recipients, position, children }: StackAvatarsWithUIProps) => {
export const StackAvatarsUI = ({ recipients, position, children }: StackAvatarsUIProps) => {
const size = useWindowSize();
return (
<>
{size.width > 1050 ? (