From 3f700ff72b82f8f6832511977c7a2efc049ce754 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Tue, 10 May 2016 14:39:44 +0800 Subject: [PATCH] site: fix header highlight --- site/component/Header/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/component/Header/index.jsx b/site/component/Header/index.jsx index 10f8e6a98d..9950a70559 100644 --- a/site/component/Header/index.jsx +++ b/site/component/Header/index.jsx @@ -78,7 +78,8 @@ export default class Header extends React.Component { render() { const routes = this.props.routes; - const activeMenuItem = routes[1].path || 'home'; + let activeMenuItem = routes[1].path || 'home'; + activeMenuItem = activeMenuItem === 'components' ? 'docs/react' : activeMenuItem; const options = Object.keys(componentsList).map((key) => { return componentsList[key];