From d2f2e1c854b9af47fc003eac0e78f3fa1d5c5d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 8 Jan 2019 00:54:07 +0800 Subject: [PATCH] prettier HeaderSearch (#3308) --- src/components/HeaderSearch/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/HeaderSearch/index.js b/src/components/HeaderSearch/index.js index 2c56fe38..04f8b38e 100644 --- a/src/components/HeaderSearch/index.js +++ b/src/components/HeaderSearch/index.js @@ -65,11 +65,11 @@ export default class HeaderSearch extends PureComponent { onChange = value => { const { onSearch, onChange } = this.props; this.setState({ value }); - if (onSearch){ - onSearch(value); + if (onSearch) { + onSearch(value); } - if (onChange){ - onChange(value); + if (onChange) { + onChange(value); } }; -- GitLab