mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
35 lines
777 B
TypeScript
35 lines
777 B
TypeScript
import React from "react";
|
|
import BranchDetail from "./BranchDetail";
|
|
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
|
import { Branch, Repository } from "@scm-manager/ui-types";
|
|
|
|
type Props = {
|
|
repository: Repository;
|
|
branch: Branch;
|
|
};
|
|
|
|
class BranchView extends React.Component<Props> {
|
|
render() {
|
|
const { repository, branch } = this.props;
|
|
|
|
return (
|
|
<div>
|
|
<BranchDetail repository={repository} branch={branch} />
|
|
<hr />
|
|
<div className="content">
|
|
<ExtensionPoint
|
|
name="repos.branch-details.information"
|
|
renderAll={true}
|
|
props={{
|
|
repository,
|
|
branch
|
|
}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default BranchView;
|