1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-18 03:15:32 +00:00

fix several propType errors raised by 'react.development.js'

some are caused by typo, some are caused by unused propType declarations
This commit is contained in:
hikerpig
2019-07-20 23:53:14 +08:00
committed by Junyoung Choi
parent 71d27d0e55
commit f3e2205e69
5 changed files with 8 additions and 9 deletions

View File

@@ -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'}