-
Notifications
You must be signed in to change notification settings - Fork 2
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
Shipping info #51
Conversation
if (username !== "" && phone !== "" && Address !== "") { | ||
axios | ||
.post("/shipping_info", { username, phone, Address, Extra_Note }) | ||
.then(res => console.log("5555555555", res.data)); |
There was a problem hiding this comment.
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));
There was a problem hiding this comment.
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
flex-direction: column; | ||
border: 1px #000000; | ||
} | ||
input[type="text"] { |
There was a problem hiding this comment.
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 = "/"; | ||
}); |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work 👍
relates #44