forked from atom/github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub-blank-uninitialized.js
37 lines (33 loc) · 1.39 KB
/
github-blank-uninitialized.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* istanbul ignore file */
import React from 'react';
import PropTypes from 'prop-types';
import Octicon from '../atom/octicon';
export default function GitHubBlankUninitialized(props) {
return (
<div className="github-Local-Uninit github-Blank">
<main className="github-Blank-body">
<div className="github-Blank-LargeIcon icon icon-mark-github" />
<p className="github-Blank-context">This repository is not yet version controlled by git.</p>
<p className="github-Blank-option">
<button className="github-Blank-actionBtn btn icon icon-globe" onClick={props.openBoundPublishDialog}>
Initialize and publish on GitHub...
</button>
</p>
<p className="github-Blank-explanation">
Create a new GitHub repository, then track the existing content within this directory as a git repository
configured to push there.
</p>
<p className="github-Blank-footer github-Blank-explanation">
To initialize this directory as a git repository without publishing it to GitHub, visit the
<button className="github-Blank-tabLink" onClick={props.openGitTab}>
<Octicon icon="git-commit" />Git tab.
</button>
</p>
</main>
</div>
);
}
GitHubBlankUninitialized.propTypes = {
openBoundPublishDialog: PropTypes.func.isRequired,
openGitTab: PropTypes.func.isRequired,
};