Closed reymesson1 closed 5 years ago
app.post('/quotation', masterController.masterQuotation)
exports.masterQuotation = async(req,res)=>{
var id = req.body.id;
var master = await Master.find({"id":id})
res.send(master);
}
class QuotationPanel extends React.Component{
render(){
let nextState = this.props.masterAPI;
let obj = nextState[0];
console.log(obj)
return(
<div>
<h5 style={{'font-weight':'bold'}}>Name: {obj}</h5>
<h5 style={{'font-weight':'bold'}}>Address: </h5>
<h5 style={{'font-weight':'bold'}}>Phone Number: </h5>
<h5 style={{'font-weight':'bold'}}>RNC: </h5>
<h5 style={{'font-weight':'bold'}}>Email: </h5>
</div>
)
}
}
class Quotation extends React.Component{
}