Skip to content

Commit

Permalink
#47 a little change before reviewing
Browse files Browse the repository at this point in the history
  • Loading branch information
Balsam-Faysal committed Aug 15, 2018
1 parent a19ccfa commit d3a8066
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions client/src/pages/customer-pages/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 !== "") {
Expand Down Expand Up @@ -246,11 +241,9 @@ class Home extends Component {
onTextInputChange={this.handlecheckboxChange}
/>
<Button className="customer-btn-style">Check</Button>
{/* onClick={this.openModal} */}
</form>
<Modal
isOpen={this.state.modalIsOpen}
onAfterOpen={this.afterOpenModal}
onRequestClose={this.closeModal}
style={customStyles}
contentLabel="Get phone no"
Expand Down
1 change: 1 addition & 0 deletions server/controllers/api/updateFlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import models from '../../database/models/index';

export default (req, res, next) => {
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 });
Expand Down

0 comments on commit d3a8066

Please sign in to comment.