From c3dfe2eb7a049f5de56b7de8f599a80aeac425ec Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 13 Jan 2018 19:42:03 +0800 Subject: [PATCH] fix indent --- src/components/Authorized/PromiseRender.js | 66 +++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/components/Authorized/PromiseRender.js b/src/components/Authorized/PromiseRender.js index ec7890cc..78f762d9 100644 --- a/src/components/Authorized/PromiseRender.js +++ b/src/components/Authorized/PromiseRender.js @@ -2,38 +2,38 @@ import React from 'react'; import { Spin } from 'antd'; export default class PromiseRender extends React.PureComponent { - state = { - component: false, - }; - async componentDidMount() { - this.props.promise - .then(() => { - this.setState({ - component: this.props.ok, - }); - }) - .catch(() => { - this.setState({ - component: this.props.error, - }); + state = { + component: false, + }; + async componentDidMount() { + this.props.promise + .then(() => { + this.setState({ + component: this.props.ok, }); - } - render() { - const C = this.state.component; - return C ? ( - - ) : ( -
- -
- ); - } + }) + .catch(() => { + this.setState({ + component: this.props.error, + }); + }); + } + render() { + const C = this.state.component; + return C ? ( + + ) : ( +
+ +
+ ); + } } -- GitLab