diff --git a/client/src/pages/customer-pages/Home/index.js b/client/src/pages/customer-pages/Home/index.js index 33c1462..684b946 100644 --- a/client/src/pages/customer-pages/Home/index.js +++ b/client/src/pages/customer-pages/Home/index.js @@ -39,11 +39,6 @@ class Home extends Component { this.setState({ modalIsOpen: true }); }; - afterOpenModal = () => { - // references are now sync'd and can be accessed. - // this.subtitle.style.color = "#0f0"; - }; - closeModal = () => { const { textInputValuepPhone } = this.state; if (textInputValuepPhone !== "") { @@ -246,11 +241,9 @@ class Home extends Component { onTextInputChange={this.handlecheckboxChange} /> - {/* onClick={this.openModal} */} { const flightNumber = req.params.flightId || req.body.flightNo; + models.Flights.findOne({ where: { flight_no: flightNumber } }).then((result) => { const resultFlightInformation = result.dataValues; res.status(200).send({ data: resultFlightInformation });