未验证 提交 d2f2e1c8 编写于 作者: 陈帅 提交者: GitHub

prettier HeaderSearch (#3308)

上级 31d63bc7
......@@ -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);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册