Skip to content

Commit

Permalink
変更点を戻す
Browse files Browse the repository at this point in the history
  • Loading branch information
ogis-yamanaka committed Jul 31, 2023
1 parent 3d9563e commit af4ba3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/src/compornents/organisms/cartItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const CartItem: React.FC<{cart: Cart, handleChange: (productId: string, count: n
<StyledTableCell align="center"><Price value={product.price} /></StyledTableCell>
<StyledTableCell align="center"><Price value={product.allPrice} /></StyledTableCell>
<StyledTableCell align="center">
<Button variant="contained" color="primary" value={product.id} onClick={event => handleDelete(product.id)}>削除</Button>
<Button value={product.id} onClick={event => handleDelete(product.id)}>削除</Button>
</StyledTableCell>
</StyledTableRow>
))}
Expand Down
10 changes: 3 additions & 7 deletions app/src/compornents/organisms/productList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const useStyles = makeStyles((theme: Theme) =>
},
cardContent: {
flexGrow: 1,
textAlign: 'right',
},
})
)
Expand All @@ -52,15 +51,12 @@ const ProductList:React.FC<{product: Product}> = ({product}) => {
<Card className={classes.card}>
<Link to={"/productDetail/" + product.id}>
<CardMedia component="img" className={classes.cardMedia} image="/item.png" title="item" />
</Link>
<CardContent className={classes.cardContent}>
<Typography gutterBottom variant="h5" component="h2">
{product.name}
</Typography>
</Link>
<Typography>セール中</Typography>
<CardContent className={classes.cardContent}>
<div>
<Price value={product.price} />
</div>
<Price value={product.price} />
</CardContent>
</Card>
)
Expand Down

0 comments on commit af4ba3a

Please sign in to comment.