Skip to content

Commit 571de12

Browse files
committed
Fix <div> cannot be descendant of <p> warning in console
1 parent a108ff7 commit 571de12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/Cart/Cart.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { AppContext } from 'utils/context/AppContext';
99
* Currently only displays a sample cart.
1010
* Displays amount of items in cart.
1111
*/
12-
const Cart = () => {
12+
const Cart = () => {
1313
const [cart, setCart] = useContext(AppContext);
1414

1515
const productsCount =

components/Product/SingleProduct.component.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ const SingleProduct = ({ product }) => {
8989
<option value="sort">Large</option>
9090
</select>
9191
</p>
92-
<p className="pt-1 mt-2">
92+
<div className="pt-1 mt-2">
9393
<AddToCartButton product={product} />
94-
</p>
94+
</div>
9595
</div>
9696
</div>
9797
</div>

0 commit comments

Comments
 (0)