Skip to content

Commit

Permalink
Form description added
Browse files Browse the repository at this point in the history
  • Loading branch information
Nobatgeldi committed Dec 9, 2023
1 parent e36456b commit ced08a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/covisart/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,16 @@ const Product = () => {
type='email'
placeholder="E-mail"
onChange={(e) => { state.email = e.currentTarget.value }} />
<textarea
required
id="message"
type='text'
placeholder="Message"
onChange={(e) => { state.message = e.currentTarget.value }} />

<Row style={{ justifyContent: "flex-start", alignItems: "center", flexDirection: "row", display: "flex", }}>
<div style={{ padding: "3%" }}>Select Country:</div>
<ReactCountryDropdown onSelect={(e) => { state.country = e.name; console.log(state.country); }} countryCode='TR' />
<ReactCountryDropdown onSelect={(e) => { state.country = e.name; }} countryCode='TR' />
</Row>

<button className="btn-default btn-border" type="submit" value="Order">Order</button >
Expand Down
4 changes: 2 additions & 2 deletions src/covisart/system/OrderRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const LocalOrder = async (state) => {
email: state.email,
name: state.name,
country: state.country,
description: state.decal,
description: state.message,
size: state.size,
phone: state.phone,
accessory: state.accessory,
Expand All @@ -27,7 +27,7 @@ export const Order = async (state) => {
email: state.email,
name: state.name,
country: state.country,
description: state.decal,
description: state.country,
size: state.size,
phone: state.phone,
accessory: state.accessory,
Expand Down

0 comments on commit ced08a8

Please sign in to comment.