diff --git a/apps/site/components/withAvatarGroup.tsx b/apps/site/components/AvatarGroup.tsx similarity index 62% rename from apps/site/components/withAvatarGroup.tsx rename to apps/site/components/AvatarGroup.tsx index f9c3491dd8c92..978bf7dea5abf 100644 --- a/apps/site/components/withAvatarGroup.tsx +++ b/apps/site/components/AvatarGroup.tsx @@ -1,6 +1,6 @@ 'use client'; -import AvatarGroup from '@node-core/ui-components/Common/AvatarGroup'; +import AvatarGroupContainer from '@node-core/ui-components/Common/AvatarGroup'; import Link from '#site/components/Link'; import { getAuthors } from '#site/util/author'; @@ -8,19 +8,19 @@ import { getAuthors } from '#site/util/author'; import type { AuthorProps } from '#site/types'; import type { ComponentProps, FC } from 'react'; -type WithAvatarGroupProps = Omit< - ComponentProps, +type AvatarGroupProps = Omit< + ComponentProps, 'avatars' | 'as' > & AuthorProps; -const WithAvatarGroup: FC = ({ +const AvatarGroup: FC = ({ usernames, names, clickable = true, ...props }) => ( - = ({ /> ); -export default WithAvatarGroup; +export default AvatarGroup; diff --git a/apps/site/components/Blog/BlogPostCard/index.tsx b/apps/site/components/Blog/BlogPostCard/index.tsx index 0951d52022a11..a36b38c5fb576 100644 --- a/apps/site/components/Blog/BlogPostCard/index.tsx +++ b/apps/site/components/Blog/BlogPostCard/index.tsx @@ -1,9 +1,9 @@ import Preview from '@node-core/ui-components/Common/Preview'; import { useTranslations } from 'next-intl'; +import AvatarGroup from '#site/components/AvatarGroup'; import FormattedTime from '#site/components/Common/FormattedTime'; import Link from '#site/components/Link'; -import WithAvatarGroup from '#site/components/withAvatarGroup'; import { mapBlogCategoryToPreviewType } from '#site/util/blog'; import type { BlogCategory } from '#site/types'; @@ -49,7 +49,7 @@ const BlogPostCard: FC = ({ {description &&

{description}

}