Fix create link so that its correctly highlighted

The "Create Repository" button in the TabGroup when creating a repository was not highlighted when the "Add Repository" button is first clicked from within the Repository Overview. This is because the routes were not matching. I fixed the lower link in the "Add Repository" button that leads to the create page.
This commit is contained in:
Florian Scholdei
2021-06-01 15:14:06 +02:00
committed by GitHub
parent 9a2ff75f9b
commit 1df1038b6e

View File

@@ -139,7 +139,7 @@ const Overview: FC = () => {
return (
<Page title={t("overview.title")} subtitle={t("overview.subtitle")} loading={isLoading} error={error}>
<Repositories namespaces={namespaces} repositories={repositories} search={search} page={page} />
{showCreateButton ? <CreateButton label={t("overview.createButton")} link="/repos/create" /> : null}
{showCreateButton ? <CreateButton label={t("overview.createButton")} link="/repos/create/" /> : null}
<PageActions>
{showActions ? (
<OverviewPageActions