mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 14:05:44 +01:00
Remove unnecessary route
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { Route, Switch, withRouter } from "react-router-dom";
|
import { withRouter } from "react-router-dom";
|
||||||
import type { Repository, Branch } from "@scm-manager/ui-types";
|
import type { Repository, Branch } from "@scm-manager/ui-types";
|
||||||
import FileTree from "../components/FileTree";
|
import FileTree from "../components/FileTree";
|
||||||
import { ErrorNotification, Loading } from "@scm-manager/ui-components";
|
import { ErrorNotification, Loading } from "@scm-manager/ui-components";
|
||||||
@@ -62,20 +62,7 @@ class Sources extends React.Component<Props> {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{this.renderBranchSelector()}
|
{this.renderBranchSelector()}
|
||||||
<Switch>
|
|
||||||
<Route
|
|
||||||
path={`${baseUrl}/:revision/:path*`}
|
|
||||||
component={() => (
|
|
||||||
<FileTree repository={repository} baseUrl={baseUrl} />
|
<FileTree repository={repository} baseUrl={baseUrl} />
|
||||||
)}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path={`${baseUrl}`}
|
|
||||||
component={() => (
|
|
||||||
<FileTree repository={repository} baseUrl={baseUrl} />
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
</Switch>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user