Skip to content

Commit

Permalink
fix:修復商品詳請RWD
Browse files Browse the repository at this point in the history
  • Loading branch information
partner0487 committed Dec 23, 2023
1 parent fc6d9f6 commit 938a51a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/MediaCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ export default function MediaCard({ commodity }) {
</p>
<p style={{ color: "black", fontWeight: "bold" }}>
數量:{commodity.productAmount}
<Checkbox onChange={handleChange} checked={love} icon={<FavoriteBorder />} checkedIcon={<Favorite />} sx={{color: pink[800],'&.Mui-checked': {color: pink[600]}}}/>
</p>
</div>
) : (
Expand Down Expand Up @@ -470,7 +471,6 @@ export default function MediaCard({ commodity }) {
<Button variant="contained" color="error" onClick={handleSubmit}>
加入購物車
</Button>
<Checkbox onChange={handleChange} checked={love} icon={<FavoriteBorder />} checkedIcon={<Favorite />} sx={{color: pink[800],'&.Mui-checked': {color: pink[600]}}}/>
</div>
) : (
<div style={{ display: "flex", width:"100%", flexDirection: "row-reverse"}}>
Expand Down Expand Up @@ -509,7 +509,6 @@ export default function MediaCard({ commodity }) {
>
出價
</Button>
<Checkbox onChange={handleChange} checked={love} icon={<FavoriteBorder />} checkedIcon={<Favorite />} sx={{color: pink[800],'&.Mui-checked': {color: pink[600]}}}/>
</div>
)}
</div>
Expand Down

0 comments on commit 938a51a

Please sign in to comment.