Skip to content

Commit

Permalink
feat: ✨ added threeWordsTitle in Cart / Favorited
Browse files Browse the repository at this point in the history
  • Loading branch information
AdaoBJr committed Aug 29, 2021
1 parent 5593df7 commit a5c4389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/pages/Cart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { BiUpArrowAlt } from 'react-icons/bi';
import { addCart, setFav } from '../../redux/actions';
import {
CarT, Fav, removeItem,
CarT, Fav, removeItem, threeWordsTitle,
} from '../../functions';

import CartFooter from '../components/CartFooter';
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function Cart() {
className="bdGrid"
>
<img src={thumbnail} alt="" className="favImg" />
<h3 className="cartTitle">{title}</h3>
<h3 className="cartTitle">{threeWordsTitle(title)}</h3>
</Link>
<span className="cartCategory">
{(availableQuantity) === 1 ? `${availableQuantity} disponível` : (
Expand Down
3 changes: 2 additions & 1 deletion src/common/pages/Favorited.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Footer from '../components/Footer';
import Header from '../components/Header';
import BtnsAddRem from '../components/buttons/BtnsAddRem';
import BtnFavorited from '../components/buttons/BtnFavorited';
import { threeWordsTitle } from '../../functions';

export default function Favorited() {
const [ScrollY, setScrollY] = useState(false);
Expand Down Expand Up @@ -55,7 +56,7 @@ export default function Favorited() {
className="bdGrid"
>
<img src={thumbnail} alt="" className="favImg" />
<h3 className="favTitle">{title}</h3>
<h3 className="favTitle">{threeWordsTitle(title)}</h3>
</Link>
<span className="favCategory">
{(availableQuantity) === 1 ? `${availableQuantity} disponível` : (
Expand Down

0 comments on commit a5c4389

Please sign in to comment.