From 8e744545ff4e07dd563b777fd3fb4eda2d517bf2 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 16 Aug 2017 10:38:37 +0800 Subject: [PATCH] code style --- site/theme/template/Content/Demo.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/site/theme/template/Content/Demo.jsx b/site/theme/template/Content/Demo.jsx index b7c6743f4e..41a73e8549 100644 --- a/site/theme/template/Content/Demo.jsx +++ b/site/theme/template/Content/Demo.jsx @@ -36,8 +36,8 @@ export default class Demo extends React.Component { shouldComponentUpdate(nextProps, nextState) { return (this.state.codeExpand || this.props.expand) !== (nextState.codeExpand || nextProps.expand) - || this.state.copied !== nextState.copied - || this.state.copyTooltipVisible !== nextState.copyTooltipVisible; + || this.state.copied !== nextState.copied + || this.state.copyTooltipVisible !== nextState.copyTooltipVisible; } componentDidMount() { @@ -176,7 +176,8 @@ export default class Demo extends React.Component { -