mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 07:18:59 +02:00
refactor: fix a lot of errors in type-aware linting (#7477)
This commit is contained in:
parent
222bf3c091
commit
bf1513a3e3
120 changed files with 407 additions and 364 deletions
|
@ -12,7 +12,7 @@ import Link from '@docusaurus/Link';
|
|||
function WebsiteLink({to, children}: {to: string; children?: ReactNode}) {
|
||||
return (
|
||||
<Link to={to}>
|
||||
{children || (
|
||||
{children ?? (
|
||||
<Translate id="team.profile.websiteLinkLabel">website</Translate>
|
||||
)}
|
||||
</Link>
|
||||
|
@ -23,7 +23,7 @@ type ProfileProps = {
|
|||
className?: string;
|
||||
name: string;
|
||||
children: ReactNode;
|
||||
githubUrl?: string;
|
||||
githubUrl: string;
|
||||
twitterUrl?: string;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue