mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
fix(dumi): get contributor error on 404 page (#38708)
This commit is contained in:
parent
52d2b41f9d
commit
a8fc788f98
@ -178,32 +178,36 @@ const Content: FC<{ children: ReactNode }> = ({ children }) => {
|
|||||||
)}
|
)}
|
||||||
</Typography.Title>
|
</Typography.Title>
|
||||||
{children}
|
{children}
|
||||||
<ContributorsList
|
{meta.frontmatter.filename && (
|
||||||
css={styles.contributorsList}
|
<ContributorsList
|
||||||
fileName={meta.frontmatter.filename ?? ''}
|
css={styles.contributorsList}
|
||||||
renderItem={(item, loading) =>
|
fileName={meta.frontmatter.filename}
|
||||||
loading ? (
|
renderItem={(item, loading) =>
|
||||||
<Avatar style={{ opacity: 0.3 }} />
|
loading ? (
|
||||||
) : (
|
<Avatar style={{ opacity: 0.3 }} />
|
||||||
item && (
|
) : (
|
||||||
<Tooltip
|
item && (
|
||||||
title={`${formatMessage({ id: 'app.content.contributors' })}: ${item.username}`}
|
<Tooltip
|
||||||
key={item.username}
|
title={`${formatMessage({ id: 'app.content.contributors' })}: ${
|
||||||
>
|
item.username
|
||||||
<a
|
}`}
|
||||||
href={`https://github.com/${item.username}`}
|
key={item.username}
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
>
|
>
|
||||||
<Avatar src={item.url}>{item.username}</Avatar>
|
<a
|
||||||
</a>
|
href={`https://github.com/${item.username}`}
|
||||||
</Tooltip>
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<Avatar src={item.url}>{item.username}</Avatar>
|
||||||
|
</a>
|
||||||
|
</Tooltip>
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
}
|
||||||
}
|
repo="ant-design"
|
||||||
repo="ant-design"
|
owner="ant-design"
|
||||||
owner="ant-design"
|
/>
|
||||||
/>
|
)}
|
||||||
</article>
|
</article>
|
||||||
<PrevAndNext />
|
<PrevAndNext />
|
||||||
<Footer />
|
<Footer />
|
||||||
|
Loading…
Reference in New Issue
Block a user