Skip to content

Commit 5720b31

Browse files
committed
Merge branch 'master' into discard-warnings
2 parents 410b611 + f3e2205 commit 5720b31

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

browser/components/NoteItem.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,14 @@ NoteItem.propTypes = {
148148
tags: PropTypes.array,
149149
isStarred: PropTypes.bool.isRequired,
150150
isTrashed: PropTypes.bool.isRequired,
151-
blog: {
151+
blog: PropTypes.shape({
152152
blogLink: PropTypes.string,
153153
blogId: PropTypes.number
154-
}
154+
})
155155
}),
156156
handleNoteClick: PropTypes.func.isRequired,
157157
handleNoteContextMenu: PropTypes.func.isRequired,
158-
handleDragStart: PropTypes.func.isRequired,
159-
handleDragEnd: PropTypes.func.isRequired
158+
handleDragStart: PropTypes.func.isRequired
160159
}
161160

162161
export default CSSModules(NoteItem, styles)

browser/components/SideNavFilter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ SideNavFilter.propTypes = {
7373
handleAllNotesButtonClick: PropTypes.func.isRequired,
7474
isStarredActive: PropTypes.bool.isRequired,
7575
isTrashedActive: PropTypes.bool.isRequired,
76-
handleStarredButtonClick: PropTypes.func.isRequired
76+
handleStarredButtonClick: PropTypes.func.isRequired,
77+
handleTrashedButtonClick: PropTypes.func.isRequired
7778
}
7879

7980
export default CSSModules(SideNavFilter, styles)

browser/components/TodoProcess.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const TodoProcess = ({
2525
)
2626

2727
TodoProcess.propTypes = {
28-
todoStatus: {
28+
todoStatus: PropTypes.exact({
2929
total: PropTypes.number.isRequired,
3030
completed: PropTypes.number.isRequired
31-
}
31+
})
3232
}
3333

3434
export default CSSModules(TodoProcess, styles)

browser/main/Detail/ToggleModeButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ToggleModeButton = ({
2020

2121
ToggleModeButton.propTypes = {
2222
onClick: PropTypes.func.isRequired,
23-
editorType: PropTypes.string
23+
editorType: PropTypes.string.isRequired
2424
}
2525

2626
export default CSSModules(ToggleModeButton, styles)

browser/main/SideNav/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class SideNav extends React.Component {
440440

441441
const style = {}
442442
if (!isFolded) style.width = this.props.width
443-
const isTagActive = !!location.pathname.match(/tag/)
443+
const isTagActive = /tag/.test(location.pathname)
444444
return (
445445
<div className='SideNav'
446446
styleName={isFolded ? 'root--folded' : 'root'}

0 commit comments

Comments
 (0)