mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-26 09:19:12 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user