Skip to content

Commit 43cdca9

Browse files
author
Devansh K Shukla
committed
pass props value inside the src attribute inside the img tag
1 parent 47bdc22 commit 43cdca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProductPreview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const ProductPreview = (props) => {
66
const currentMinutes = new Date().getMinutes() > 9 ? new Date().getMinutes() : '0' + new Date().getMinutes();
77
return(
88
<div className={style.ProductPreview}>
9-
<img src='https://imgur.com/iOeUBV7.png' alt='Product Preview'/>
9+
<img src={props.currentPreviewImage} alt='Product Preview'/>
1010

1111
<div className={style.TimeSection}>
1212
<p>{`${new Date().getHours()}:${currentMinutes}`}</p>

0 commit comments

Comments
 (0)