fix: [code-536]: add breadcrumb on commit diff page

This commit is contained in:
calvin 2023-06-22 15:19:42 -06:00
parent 63c45cb0db
commit 286e6e67d3

View File

@ -74,6 +74,16 @@ export default function RepositoryCommits() {
repoMetadata={repoMetadata}
title={getString('commits')}
dataTooltipId="repositoryCommits"
extraBreadcrumbLinks={
commitRef && repoMetadata
? [
{
label: getString('commits'),
url: routes.toCODECommits({ repoPath: repoMetadata.path as string, commitRef: '' })
}
]
: undefined
}
/>
<PageBody error={getErrorMessage(error || errorCommits)} retryOnError={voidFn(refetch)}>