- { (!this.props.paid || this.props.task?.Transfer?.id) ? (
-
- { this.props.assigned ?
-
: null
- }
- { this.props?.assigns?.length > 0 ?
-
-
-
-
- await this.props.assignTask(this.props.id, id)}
- onReject={async (id) => await this.props.actionAssign(this.props.id, id, false)}
- />
-
: null
- }
- { offers?.length ?
-
-
-
-
- openMessageDialog(id, 'offers') }
- onAccept={(event, offer) => confirmAssignTaskAndCreateOrder(event, offer)}
- onReject={(event, offer) => onReject(event, offer)}
- />
- this.setState({ confirmOrderDialog: false })}
- onConfirm={(event) => assignTaskAndCreateOrder(event, this.state.currentOffer)}
- offer={this.state.currentOffer}
- />
-
: null
- }
-
-