Skip to content

Instantly share code, notes, and snippets.

View jaisonrobson's full-sized avatar

Jaison Robson Gusava jaisonrobson

View GitHub Profile
@jaisonrobson
jaisonrobson / Cart.jsx
Created August 24, 2022 00:40
Modern Full Stack ECommerce Next.js Tutorial Solution for ShoppingCart
import React, { useRef } from 'react'
import Link from 'next/link'
import { AiOutlineMinus, AiOutlinePlus, AiOutlineLeft, AiOutlineShopping } from 'react-icons/ai'
import { TiDeleteOutline } from 'react-icons/ti'
import toast from 'react-hot-toast'
import { useShoppingCartContext } from '../contexts/ShoppingCartContext'
import { urlFor } from '../lib/client'
const Cart = () => {