mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 03:25:56 +01:00
29 lines
549 B
JavaScript
29 lines
549 B
JavaScript
//@flow
|
|
import React from "react";
|
|
import type { Repository } from "@scm-manager/ui-types";
|
|
|
|
type Props = {
|
|
repository: Repository
|
|
}
|
|
|
|
class ProtocolInformation extends React.Component<Props> {
|
|
|
|
render() {
|
|
const { repository } = this.props;
|
|
if (!repository._links.httpProtocol) {
|
|
return null;
|
|
}
|
|
return (
|
|
<div>
|
|
<h4>Checkout the repository</h4>
|
|
<pre>
|
|
<code>svn checkout {repository._links.httpProtocol.href}</code>
|
|
</pre>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
export default ProtocolInformation;
|