Skip to content

Commit

Permalink
Add role in cart items to pass test for Issue developer-job-simulation#2
Browse files Browse the repository at this point in the history
  • Loading branch information
JunYuHuang committed Apr 11, 2023
1 parent 766d165 commit c05f4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Cart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ function CartItemList({ cart, updateCart }) {
return (
<div className="mt-8">
<div className="flow-root">
<ul role="listitem" className="-my-6 divide-y divide-gray-200">
<ul role="list" className="-my-6 divide-y divide-gray-200">
{cart.map((product) => (
<li key={product.id} className="flex py-6">
<li role="listitem" key={product.id} className="flex py-6">
<div className="h-24 w-24 flex-shrink-0 overflow-hidden rounded-md border border-gray-200">
<img
src={product.imageSrc}
Expand Down

0 comments on commit c05f4a0

Please sign in to comment.