diff --git a/components/Common/AvatarGroup/index.tsx b/components/Common/AvatarGroup/index.tsx index fdd8d1b475d0d..642f54c278891 100644 --- a/components/Common/AvatarGroup/index.tsx +++ b/components/Common/AvatarGroup/index.tsx @@ -11,9 +11,14 @@ import styles from './index.module.css'; type AvatarGroupProps = { avatars: ComponentProps[]; limit?: number; + isExpandable?: boolean; }; -const AvatarGroup: FC = ({ avatars, limit = 10 }) => { +const AvatarGroup: FC = ({ + avatars, + limit = 10, + isExpandable = true, +}) => { const [showMore, setShowMore] = useState(false); const renderAvatars = useMemo( @@ -33,7 +38,7 @@ const AvatarGroup: FC = ({ avatars, limit = 10 }) => { {avatars.length > limit && ( setShowMore(!showMore)} + onClick={() => isExpandable && setShowMore(!showMore)} className={classNames(avatarstyles.avatarRoot, 'cursor-pointer')} > diff --git a/components/Downloads/ChangelogModal/index.tsx b/components/Downloads/ChangelogModal/index.tsx index 67a1335ecf73f..5c32ceb8ff0b9 100644 --- a/components/Downloads/ChangelogModal/index.tsx +++ b/components/Downloads/ChangelogModal/index.tsx @@ -39,7 +39,7 @@ const ChangelogModal: FC> = ({ {subheading}
- + {t('components.downloads.changelogModal.startContributing')}