Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit72b6fd8

Browse files
committed
repair MenuLink
1 parent0fe53c6 commit72b6fd8

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

‎lib/components/AppMenu/MenuLink/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ var MenuLink = (function (_super) {
2323
};
2424
returnMenuLink;
2525
}(React.Component));
26+
varmapStateToProps=function(state,props){return({
27+
route:props.route,
28+
title:props.title||null,
29+
});};
2630
varmapDispatchToProps={routeSet:actions_1.routeSet};
2731
Object.defineProperty(exports,"__esModule",{value:true});
28-
exports.default=react_redux_1.connect()(MenuLink);
32+
exports.default=react_redux_1.connect(mapStateToProps,mapDispatchToProps)(MenuLink);

‎lib/components/Start/Checks/SystemChecks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var SystemChecks = (function (_super) {
3636
React.createElement("code",null,"> npm update -g npm"),
3737
React.createElement("br",null)),
3838
React.createElement(StepCheck_1.default,{label:'Atom >= 1.8',completed:system.atom},
39-
React.createElement("p",null,"First make sure you have atom shell commands installed."+' '+"Click the atom menu and select \"Istall Shell Commands\"."),
39+
React.createElement("p",null,"First make sure you have atom shell commands installed."+' '+"Click the atom menu and select \"Install Shell Commands\"."),
4040
React.createElement("p",null,
4141
"Otherwise, update your version of Atom.",
4242
React.createElement("br",null),

‎src/components/AppMenu/MenuLink/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const styles = {
1010
};
1111

1212
classMenuLinkextendsReact.Component<{
13-
route:string,title?:string,routeSet?:any
13+
route:string,title:string|null,routeSet?:any
1414
},{}>{
1515
publicrender(){
1616
const{route, title, routeSet}=this.props;
@@ -30,7 +30,10 @@ class MenuLink extends React.Component<{
3030
// title: React.PropTypes.string.optional,
3131
// routeSet: React.PropTypes.func.optional,
3232
// };
33-
33+
constmapStateToProps=(state,props)=>({
34+
route:props.route,
35+
title:props.title||null,
36+
})
3437
constmapDispatchToProps={routeSet};
3538

36-
exportdefaultconnect()(MenuLink);
39+
exportdefaultconnect(mapStateToProps,mapDispatchToProps)(MenuLink);

‎src/components/Start/Checks/SystemChecks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ checks: CR.Checks
4747
completed={system.atom}
4848
>
4949
<p>First make sure you have atom shell commands installed.
50-
Click the atom menu and select "Istall Shell Commands".</p>
50+
Click the atom menu and select "Install Shell Commands".</p>
5151
<p>Otherwise, update your version of Atom.<br/>
5252
Click on the blue "update" squirrel in the bottom right corner of your editor.</p>
5353
</StepCheck>

‎tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"exclude": [
2626
"node_modules",
2727
"src/__tests__",
28+
"src/__coverage__",
2829
"src/**/*.test.ts",
2930
"src/**/*.test.tsx",
3031
"src/**/*.spec.ts",
31-
"src/**/*.spec.tsx",
32-
"src/__coverage__"
32+
"src/**/*.spec.tsx"
3333
]
3434
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp