File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -148,15 +148,14 @@ NoteItem.propTypes = {
148
148
tags : PropTypes . array ,
149
149
isStarred : PropTypes . bool . isRequired ,
150
150
isTrashed : PropTypes . bool . isRequired ,
151
- blog : {
151
+ blog : PropTypes . shape ( {
152
152
blogLink : PropTypes . string ,
153
153
blogId : PropTypes . number
154
- }
154
+ } )
155
155
} ) ,
156
156
handleNoteClick : PropTypes . func . isRequired ,
157
157
handleNoteContextMenu : PropTypes . func . isRequired ,
158
- handleDragStart : PropTypes . func . isRequired ,
159
- handleDragEnd : PropTypes . func . isRequired
158
+ handleDragStart : PropTypes . func . isRequired
160
159
}
161
160
162
161
export default CSSModules ( NoteItem , styles )
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ SideNavFilter.propTypes = {
73
73
handleAllNotesButtonClick : PropTypes . func . isRequired ,
74
74
isStarredActive : PropTypes . bool . isRequired ,
75
75
isTrashedActive : PropTypes . bool . isRequired ,
76
- handleStarredButtonClick : PropTypes . func . isRequired
76
+ handleStarredButtonClick : PropTypes . func . isRequired ,
77
+ handleTrashedButtonClick : PropTypes . func . isRequired
77
78
}
78
79
79
80
export default CSSModules ( SideNavFilter , styles )
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ const TodoProcess = ({
25
25
)
26
26
27
27
TodoProcess . propTypes = {
28
- todoStatus : {
28
+ todoStatus : PropTypes . exact ( {
29
29
total : PropTypes . number . isRequired ,
30
30
completed : PropTypes . number . isRequired
31
- }
31
+ } )
32
32
}
33
33
34
34
export default CSSModules ( TodoProcess , styles )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const ToggleModeButton = ({
20
20
21
21
ToggleModeButton . propTypes = {
22
22
onClick : PropTypes . func . isRequired ,
23
- editorType : PropTypes . string
23
+ editorType : PropTypes . string . isRequired
24
24
}
25
25
26
26
export default CSSModules ( ToggleModeButton , styles )
Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ class SideNav extends React.Component {
440
440
441
441
const style = { }
442
442
if ( ! isFolded ) style . width = this . props . width
443
- const isTagActive = ! ! location . pathname . match ( / t a g / )
443
+ const isTagActive = / t a g / . test ( location . pathname )
444
444
return (
445
445
< div className = 'SideNav'
446
446
styleName = { isFolded ? 'root--folded' : 'root' }
You can’t perform that action at this time.
0 commit comments