From 3533903be34314c8e058975ea08c97660cfdab2b Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sat, 7 Oct 2017 03:39:25 +0900 Subject: [PATCH] duplicate conditions as a variable --- browser/main/SideNav/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/main/SideNav/index.js b/browser/main/SideNav/index.js index 3ced3bfd..1b4cd4f8 100644 --- a/browser/main/SideNav/index.js +++ b/browser/main/SideNav/index.js @@ -138,6 +138,7 @@ class SideNav extends React.Component { }) let style = {} if (!isFolded) style.width = this.props.width + const isTagActive = location.pathname.match(/tag/) return (
- - + +