Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
hotfix for classname bug and item image bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbathurst committed Jul 18, 2018
1 parent 2df54c2 commit 4373b6e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules/
build/
build.pem
.DS_Store
*/.DS_Store
*/.DS_Store
dist.crx
2 changes: 1 addition & 1 deletion popup/src/scripts/components/app/LoggedIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LoggedIn extends Component {
<div className="row header">
<div className="col-5">
<h2>Shopping Cart</h2>
<p class="username">{this.props.username}</p>
<p className="username">{this.props.username}</p>
</div>
{ (cartItems.length > 0) &&
<div className="col-7">
Expand Down
6 changes: 2 additions & 4 deletions popup/src/scripts/components/app/cartItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ class CartItem extends Component {
super(props);
}

componentDidMount() {
}

render() {
const productLink = `https://www.amazon.com/gp/product/${this.props.item.asin}`;
const itemImage = (this.props.item.images && this.props.item.images.small) ? this.props.item.images.small: '#';
return (
<div className="row product">
<div className="col-3">
<img src={this.props.item.images.small} />
<img src={itemImage} />
</div>
<div className="col-9">
<a target="_blank" href={productLink}>{this.props.item.name}</a>
Expand Down
4 changes: 4 additions & 0 deletions styles/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
border-bottom-width: 0px;
}

#app .product img {
width: 100%;
}

#app .checkout {
display: block;
padding: 15px 30px;
Expand Down

0 comments on commit 4373b6e

Please sign in to comment.