Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions browser/components/NoteItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,14 @@ NoteItem.propTypes = {
tags: PropTypes.array,
isStarred: PropTypes.bool.isRequired,
isTrashed: PropTypes.bool.isRequired,
blog: {
blog: PropTypes.shape({
blogLink: PropTypes.string,
blogId: PropTypes.number
}
})
}),
handleNoteClick: PropTypes.func.isRequired,
handleNoteContextMenu: PropTypes.func.isRequired,
handleDragStart: PropTypes.func.isRequired,
handleDragEnd: PropTypes.func.isRequired
handleDragStart: PropTypes.func.isRequired
}

export default CSSModules(NoteItem, styles)
2 changes: 1 addition & 1 deletion browser/components/SideNavFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SideNavFilter.propTypes = {
isStarredActive: PropTypes.bool.isRequired,
isTrashedActive: PropTypes.bool.isRequired,
handleStarredButtonClick: PropTypes.func.isRequired,
handleTrashdButtonClick: PropTypes.func.isRequired
handleTrashedButtonClick: PropTypes.func.isRequired
}

export default CSSModules(SideNavFilter, styles)
4 changes: 2 additions & 2 deletions browser/components/TodoProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const TodoProcess = ({
)

TodoProcess.propTypes = {
todoStatus: {
todoStatus: PropTypes.exact({
total: PropTypes.number.isRequired,
completed: PropTypes.number.isRequired
}
})
}

export default CSSModules(TodoProcess, styles)
2 changes: 1 addition & 1 deletion browser/main/Detail/ToggleModeButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ToggleModeButton = ({

ToggleModeButton.propTypes = {
onClick: PropTypes.func.isRequired,
editorType: PropTypes.string.Required
editorType: PropTypes.string.isRequired
}

export default CSSModules(ToggleModeButton, styles)
2 changes: 1 addition & 1 deletion browser/main/SideNav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class SideNav extends React.Component {

const style = {}
if (!isFolded) style.width = this.props.width
const isTagActive = location.pathname.match(/tag/)
const isTagActive = /tag/.test(location.pathname)
return (
<div className='SideNav'
styleName={isFolded ? 'root--folded' : 'root'}
Expand Down