Skip to content

Commit

Permalink
move to upper position
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Aug 19, 2024
1 parent d734e30 commit 5e404a1
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions packages/mui-docs/src/ComponentLinkHeader/ComponentLinkHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,26 @@ export function ComponentLinkHeader(props: ComponentLinkHeaderProps) {
/>
</Tooltip>
</li>
{headers.githubSource ? (
<li>
<Chip
clickable
role={undefined}
component="a"
size="small"
variant="outlined"
rel="nofollow"
href={`${process.env.SOURCE_CODE_REPO}/tree/${process.env.SOURCE_GITHUB_BRANCH}/${headers.githubSource}`}
icon={<GitHubIcon />}
data-ga-event-category="ComponentLinkHeader"
data-ga-event-action="click"
data-ga-event-label="Source"
data-ga-event-split="0.1"
label="Source"
target="_blank"
/>
</li>
) : null}
{headers.waiAria ? (
<li>
<Chip
Expand Down Expand Up @@ -195,26 +215,6 @@ export function ComponentLinkHeader(props: ComponentLinkHeaderProps) {
)}
</React.Fragment>
)}
{headers.githubSource ? (
<li>
<Chip
clickable
role={undefined}
component="a"
size="small"
variant="outlined"
rel="nofollow"
href={`${process.env.SOURCE_CODE_REPO}/tree/${process.env.SOURCE_GITHUB_BRANCH}/${headers.githubSource}`}
icon={<GitHubIcon />}
data-ga-event-category="ComponentLinkHeader"
data-ga-event-action="click"
data-ga-event-label="Source"
data-ga-event-split="0.1"
label="Source"
target="_blank"
/>
</li>
) : null}
</Root>
);
}

0 comments on commit 5e404a1

Please sign in to comment.