@@ -228,7 +227,7 @@ class OrderPage extends Component {
return(
<>
{this.InactiveMakerDialog()}
- {this.StoreTokenDialog()}
+ {this.tokenDialog()}
,
- }}
- />
-
-
-
-
-
-
-
- )
- }else{
- return(
-
- )
- }
-}
+ tokenDialog = () =>{
+ return(getCookie("robot_token") ?
+
this.setState({openStoreToken:false})}
+ onClickCopy={()=> (navigator.clipboard.writeText(getCookie("robot_token")) & this.props.setAppState({copiedToken:true}))}
+ copyIconColor={this.props.copiedToken ? "inherit" : "primary"}
+ onClickBack={() => this.setState({openStoreToken:false})}
+ onClickDone={() => this.setState({openStoreToken:false}) &
+ (this.state.maker_status=='Inactive' ?
+ this.handleClickOpenInactiveMakerDialog()
+ : this.takeOrder())
+ }/>
+ :
+ this.setState({openStoreToken:false})}
+ />
+ )
+ }
handleClickConfirmCollaborativeCancelButton=()=>{
const requestOptions = {