Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 1e0b28a

Browse files
committed
Rename openPublishDialog prop to openBoundPublishDialog when bound
1 parent 2ddf6cb commit 1e0b28a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/views/github-blank-noremote.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function GitHubBlankNoRemote(props) {
77
<div className="github-Blank-LargeIcon icon icon-mark-github" />
88
<p className="github-Blank-context">This repository has no remotes on GitHub.</p>
99
<p className="github-Blank-option github-Blank-option--explained">
10-
<button className="github-Blank-actionBtn btn icon icon-globe" onClick={props.openPublishDialog}>
10+
<button className="github-Blank-actionBtn btn icon icon-globe" onClick={props.openBoundPublishDialog}>
1111
Publish on GitHub...
1212
</button>
1313
</p>
@@ -19,5 +19,5 @@ export default function GitHubBlankNoRemote(props) {
1919
}
2020

2121
GitHubBlankNoRemote.propTypes = {
22-
openPublishDialog: PropTypes.func.isRequired,
22+
openBoundPublishDialog: PropTypes.func.isRequired,
2323
};

lib/views/github-blank-uninitialized.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function GitHubBlankUninitialized(props) {
1010
<div className="github-Blank-LargeIcon icon icon-mark-github" />
1111
<p className="github-Blank-context">This repository is not yet version controlled by git.</p>
1212
<p className="github-Blank-option">
13-
<button className="github-Blank-actionBtn btn icon icon-globe" onClick={props.openPublishDialog}>
13+
<button className="github-Blank-actionBtn btn icon icon-globe" onClick={props.openBoundPublishDialog}>
1414
Initialize and publish on GitHub...
1515
</button>
1616
</p>
@@ -30,6 +30,6 @@ export default function GitHubBlankUninitialized(props) {
3030
}
3131

3232
GitHubBlankUninitialized.propTypes = {
33-
openPublishDialog: PropTypes.func.isRequired,
33+
openBoundPublishDialog: PropTypes.func.isRequired,
3434
openGitTab: PropTypes.func.isRequired,
3535
};

lib/views/github-tab-view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class GitHubTabView extends React.Component {
3737
onDidChangeWorkDirs: PropTypes.func.isRequired,
3838
getCurrentWorkDirs: PropTypes.func.isRequired,
3939
openCreateDialog: PropTypes.func.isRequired,
40-
openPublishDialog: PropTypes.func.isRequired,
40+
openBoundPublishDialog: PropTypes.func.isRequired,
4141
openCloneDialog: PropTypes.func.isRequired,
4242
openGitTab: PropTypes.func.isRequired,
4343
}
@@ -70,7 +70,7 @@ export default class GitHubTabView extends React.Component {
7070
if (this.props.repository.isEmpty()) {
7171
return (
7272
<GitHubBlankUninitialized
73-
openPublishDialog={this.props.openPublishDialog}
73+
openPublishDialog={this.props.openBoundPublishDialog}
7474
openGitTab={this.props.openGitTab}
7575
/>
7676
);
@@ -109,7 +109,7 @@ export default class GitHubTabView extends React.Component {
109109
}
110110

111111
return (
112-
<GitHubBlankNoRemote openPublishDialog={this.props.openPublishDialog} />
112+
<GitHubBlankNoRemote openPublishDialog={this.props.openBoundPublishDialog} />
113113
);
114114
}
115115

test/views/github-tab-view.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('GitHubTabView', function() {
5252
onDidChangeWorkDirs={() => {}}
5353
getCurrentWorkDirs={() => []}
5454
openCreateDialog={() => {}}
55-
openPublishDialog={() => {}}
55+
openBoundPublishDialog={() => {}}
5656
openCloneDialog={() => {}}
5757
openGitTab={() => {}}
5858

0 commit comments

Comments
 (0)