Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipping info #51

Merged
merged 22 commits into from
Sep 11, 2019
Merged

Shipping info #51

merged 22 commits into from
Sep 11, 2019

Conversation

someyaaltous
Copy link
Collaborator

@someyaaltous someyaaltous commented Sep 8, 2019

relates #44

if (username !== "" && phone !== "" && Address !== "") {
axios
.post("/shipping_info", { username, phone, Address, Extra_Note })
.then(res => console.log("5555555555", res.data));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is 5555555555 mean in .then(res => console.log("5555555555", res.data));

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted it , just for test . @ishak52

src/database/queries/post_order.js Outdated Show resolved Hide resolved
@ishak52
Copy link
Contributor

ishak52 commented Sep 10, 2019

@someyaaltous

flex-direction: column;
border: 1px #000000;
}
input[type="text"] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't give the input style in general, give it a className and put your style there.
otherwise, you'll affect all the other inputs in the project

button: "Home!"
}).then(function() {
window.location.href = "/";
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Sweet alert confirmation message will appear here even the form didn't send the data to the backend.
you should check first if the form data is already sent to the backend after that let the sweet alert message appear.

onChange={this.changeInput}
value={phone}
required
></input>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the validation for this input is not working

Copy link
Collaborator

@Muniralsharif Muniralsharif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work 👍

@ishak52 ishak52 merged commit 5cc9840 into master Sep 11, 2019
@ishak52 ishak52 deleted the shippingInfo branch September 11, 2019 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants