Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ecommerce-maven
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
ecommerce-maven
Commits
712dee2f
Commit
712dee2f
authored
May 12, 2021
by
Shaphen Pangburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Team]: Add disabled button animation logic to modals for Products
parent
48298d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
product-details.jsx
ecom-web/src/components/product-market/product-details.jsx
+7
-4
No files found.
ecom-web/src/components/product-market/product-details.jsx
View file @
712dee2f
...
@@ -85,15 +85,18 @@ export default class ProductDetails extends Component {
...
@@ -85,15 +85,18 @@ export default class ProductDetails extends Component {
<
form
className=
"details-add-cart-and-quantity"
onSubmit=
{
e
=>
this
.
handleSubmit
(
e
,
this
.
props
.
product
)
}
>
<
form
className=
"details-add-cart-and-quantity"
onSubmit=
{
e
=>
this
.
handleSubmit
(
e
,
this
.
props
.
product
)
}
>
<
input
<
input
type=
"number"
type=
"number"
className=
"prod-details-quantity"
className=
"prod-details-quantity"
id=
{
this
.
props
.
user
?.
currentUser
?
""
:
"disabled"
}
disabled=
{
!
this
.
props
.
user
?.
currentUser
}
disabled=
{
!
this
.
props
.
user
?.
currentUser
}
onChange=
{
this
.
handleChange
(
"orderItemQuantity"
)
}
onChange=
{
this
.
handleChange
(
"orderItemQuantity"
)
}
placeholder=
"Quantity"
placeholder=
"Quantity"
value=
{
this
.
state
.
orderItemQuantity
}
value=
{
this
.
state
.
orderItemQuantity
}
/>
/>
<
button
className=
"prod-details-add-to-cart"
disabled=
{
!
this
.
props
.
user
?.
currentUser
}
>
<
button
Add to Cart
className=
"prod-details-add-to-cart"
</
button
>
id=
{
this
.
props
.
user
?.
currentUser
?
""
:
"disabled"
}
disabled=
{
!
this
.
props
.
user
?.
currentUser
}
>
Add to Cart
</
button
>
{
this
.
props
.
user
?.
currentUser
?
""
:<
p
id=
"details-please-log-in-notice"
>
Log in to Add to Cart
</
p
>
}
{
this
.
props
.
user
?.
currentUser
?
""
:<
p
id=
"details-please-log-in-notice"
>
Log in to Add to Cart
</
p
>
}
</
form
>
</
form
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment