From 3af1821bdeb871d79ec0a7d36d782e7e6f64e4ef Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 11 Dec 2016 14:05:19 +0800 Subject: [PATCH] remove whitespaces --- components/modal/confirm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/modal/confirm.tsx b/components/modal/confirm.tsx index d35adb8b85..4e30f208ac 100644 --- a/components/modal/confirm.tsx +++ b/components/modal/confirm.tsx @@ -21,13 +21,13 @@ class ActionButton extends React.Component { loading: false, }; } - componentDidMount () { + componentDidMount() { if (this.props.autoFocus) { const $this = ReactDOM.findDOMNode(this) as HTMLInputElement; this.timeoutId = setTimeout(() => $this.focus()); } } - componentWillUnmount () { + componentWillUnmount() { clearTimeout(this.timeoutId); } onClick = () => {