Skip to content

Commit

Permalink
Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
Lizdev-05 committed Feb 2, 2023
1 parent 8523cc8 commit d1720ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
19 changes: 12 additions & 7 deletions src/pages/cart/Cart.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React from "react";
import { useSelector, useDispatch } from "react-redux";
import { NavLink } from "react-router-dom";
import { AiOutlinePlus, AiOutlineMinus } from "react-icons/ai";
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { NavLink } from 'react-router-dom';
import { AiOutlinePlus, AiOutlineMinus } from 'react-icons/ai';

const addCart = (product) => ({
type: "ADD_ITEM_TO_CART",
type: 'ADD_ITEM_TO_CART',
payload: product,
});

const delCart = (product) => ({
type: "DELETE_ITEM",
type: 'DELETE_ITEM',
payload: product,
});

Expand Down Expand Up @@ -49,7 +49,12 @@ const Cart = () => {
<div className="col-md-4">
<h3>{product.title}</h3>
<p className="lead fw-bold">
{product.quantity} X #{product.price} = #
{product.quantity}
{' '}
X #
{product.price}
{' '}
= #
{product.quantity * product.price}
</p>
<button
Expand Down
8 changes: 4 additions & 4 deletions src/pages/products/Product.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import { useParams } from "react-router-dom";
import { useDispatch } from "react-redux";
import Skeleton, { SkeletonTheme } from "react-loading-skeleton";
import React, { useState, useEffect } from 'react';
import { useParams } from 'react-router-dom';
import { useDispatch } from 'react-redux';
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
/* eslint-disable */
// import { addCart } from "../../redux/action";

Expand Down

0 comments on commit d1720ff

Please sign in to comment.