-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installed react modal image to aid display images on the cart
- Loading branch information
1 parent
ef5e693
commit 4dc82d1
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from "react"; | ||
import ModalImage from 'react-modal-image'; | ||
import laptop from '../../images/laptop.png' | ||
|
||
const ProductCardInCheckout = ({p})=> { | ||
return( | ||
<tbody> | ||
<tr> | ||
<td> | ||
<div style={{width: '100px', height: 'auto'}}> | ||
{p.images.length ? ( | ||
<ModalImage small={p.images[0].url} large={p.images[0].url}/> | ||
):( | ||
<ModalImage small={laptop} large={laptop}/> | ||
)} | ||
</div> | ||
</td> | ||
<td>{p.title}</td> | ||
<td>Ksh {p.price}</td> | ||
<td>{p.brand}</td> | ||
<td>{p.color}</td> | ||
<td>{p.count}</td> | ||
<td>Shipping Icon</td> | ||
<td>Remove icon</td> | ||
</tr> | ||
</tbody> | ||
) | ||
|
||
} | ||
|
||
export default ProductCardInCheckout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters