site: remove github-actions[bot] (#43182)

pull/43185/head
lijianan 2 years ago committed by GitHub
parent 9b6bec18c3
commit 8d2512be2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,7 +104,7 @@ type AnchorItem = {
children?: AnchorItem[];
};
const AvatarPlaceholder = ({ num = 3 }: { num?: number }) => (
const AvatarPlaceholder: React.FC<{ num?: number }> = ({ num = 3 }) => (
<>
{Array.from({ length: num }).map((_, i) => (
<Skeleton.Avatar size="small" active key={i} style={{ marginLeft: i === 0 ? 0 : -8 }} />
@ -289,10 +289,14 @@ const Content: React.FC<{ children: ReactNode }> = ({ children }) => {
css={styles.contributorsList}
cache
fileName={meta.frontmatter.filename}
renderItem={(item, loading) =>
loading || !item ? (
<AvatarPlaceholder />
) : (
renderItem={(item, loading) => {
if (!item || loading) {
return <AvatarPlaceholder />;
}
if (item.username?.includes('github-actions')) {
return null;
}
return (
<Tooltip
mouseEnterDelay={0.3}
title={`${formatMessage({ id: 'app.content.contributors' })}: ${item.username}`}
@ -308,8 +312,8 @@ const Content: React.FC<{ children: ReactNode }> = ({ children }) => {
</Avatar>
</a>
</Tooltip>
)
}
);
}}
/>
)}
</article>

Loading…
Cancel
Save