import React from 'react'; import {observer, inject} from 'mobx-react'; import {Dialog, FlatButton, TextField} from "material-ui"; import {DIALOG} from "../../../../stores/global_ui"; import NumberFormat from 'react-number-format'; import get from 'lodash/get'; @inject('appstate') @observer export default class GojekDialog extends React.Component { constructor(props) { super(props); this.state = { value: '' }; this.props = props; this.order = props.appstate.order; } // componentDidUpdate(prevState, prevProps){ // if(this.props !== prevProps){ // console.log(this.order.gojekPrice, 'this.order.gojekPrice this.order.gojekPrice') // } // } render() { const actions = [ { this.props.appstate.globalUI.hideDialog(DIALOG.ORDER.GOJEK_DELIVERY); this.setState({ value: '' }); }} />, { this.props.appstate.order.bookingGojek(); this.props.appstate.odoo.createSales(this.props.appstate.order.selectedOrder.id); this.props.appstate.globalUI.hideDialog(DIALOG.ORDER.GOJEK_DELIVERY); this.setState({ value: '' }); }} />, ]; const actionsError = [ { this.props.appstate.globalUI.hideDialog(DIALOG.ORDER.GOJEK_DELIVERY); this.setState({ value: '' }); }} /> ]; return ( { this.props.appstate.globalUI.hideDialog(DIALOG.ORDER.GOJEK_DELIVERY); this.setState({ value: '' }); }} > {(this.order.gojekPrice.serviceable) ?

You will find driver to pick up and send your package

Total Amount

To

Shipment Method: {get(this.order.gojekPrice, 'shipment_method','-')}

Estimate time: {get(this.order.gojekPrice, 'shipment_method_description','-')}

Distance : {get(this.order.gojekPrice, 'distance',0)} KM

:

GO-SEND Service are Unavailable because

{/*

Total Amount

*/}

{get(this.order.gojekPrice, 'shipment_method_description','-')}

}
); } }