From eea15c3902bb134cc6bdcb5771098c91ce6b98ce Mon Sep 17 00:00:00 2001 From: enggar_ganteng Date: Tue, 29 Jan 2019 01:07:54 +0700 Subject: [PATCH] dashboard pebaikan --- src/common/pages/Dashboard/index.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/common/pages/Dashboard/index.js b/src/common/pages/Dashboard/index.js index 5f0457d..06040fb 100644 --- a/src/common/pages/Dashboard/index.js +++ b/src/common/pages/Dashboard/index.js @@ -315,13 +315,15 @@ class DashboardComponent extends React.Component { - this.setState({isOpened: false})} - onCancel={() => this.setState({isOpened: false})} - /> + {this.state.isOpened && ( + this.setState({isOpened: false})} + onCancel={() => this.setState({isOpened: false})} + /> + )} this.setModalTopup(false)} onCancel={() => this.setModalTopup(false)} isVisible={this.state.modalTopup}/> );