mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
pass links to the main.route extension point
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import React from "react";
|
||||
|
||||
import { Redirect, Route, Switch, withRouter } from "react-router-dom";
|
||||
import type {Links} from "@scm-manager/ui-types";
|
||||
|
||||
import Overview from "../repos/containers/Overview";
|
||||
import Users from "../users/containers/Users";
|
||||
@@ -24,12 +25,13 @@ import Config from "../config/containers/Config";
|
||||
import Profile from "./Profile";
|
||||
|
||||
type Props = {
|
||||
authenticated?: boolean
|
||||
authenticated?: boolean,
|
||||
links: Links
|
||||
};
|
||||
|
||||
class Main extends React.Component<Props> {
|
||||
render() {
|
||||
const { authenticated } = this.props;
|
||||
const { authenticated, links } = this.props;
|
||||
return (
|
||||
<div className="main">
|
||||
<Switch>
|
||||
@@ -118,7 +120,7 @@ class Main extends React.Component<Props> {
|
||||
<ExtensionPoint
|
||||
name="main.route"
|
||||
renderAll={true}
|
||||
props={{authenticated}}
|
||||
props={{authenticated, links}}
|
||||
/>
|
||||
</Switch>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user