File tree 4 files changed +350
-274
lines changed
4 files changed +350
-274
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Image from "next/image";
3
3
import React from "react" ;
4
4
import Currency from "react-currency-formatter" ;
5
5
import { useDispatch } from "react-redux" ;
6
- import { removeFromBasket } from "../slices/basketSlice" ;
6
+ import { addToBasket , removeFromBasket } from "../slices/basketSlice" ;
7
7
8
8
function CheckoutProduct ( {
9
9
id,
@@ -31,7 +31,6 @@ function CheckoutProduct({
31
31
} ;
32
32
const removeItemFromBasket = ( ) => {
33
33
dispatch ( removeFromBasket ( { id } ) ) ;
34
-
35
34
} ;
36
35
return (
37
36
< div className = "grid grid-cols-5" >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import amazonLogo from "../public/amazon_logo.png";
13
13
function Header ( ) {
14
14
const [ session ] = useSession ( ) ;
15
15
const router = useRouter ( ) ;
16
- // console.log(session?.user?.name.split(" ").slice(0, 2).join(" ") );
16
+ // console.log(session);
17
17
const items = useSelector ( selectItems ) ;
18
18
return (
19
19
< header className = "fixed w-screen top-0 z-50 " >
Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ import moment from "moment";
5
5
import db from "../firebase" ;
6
6
import { doc , getDocs , collection } from "firebase/firestore" ;
7
7
import Order from "../components/Order" ;
8
- function Orders ( { orders } ) {
9
- // const { data: session } = useSession();
8
+ function Orders ( { orders } ) {
10
9
const [ session ] = useSession ( ) ;
11
- console . log ( orders ) ;
10
+ // console.log(orders);
12
11
return (
13
12
< >
14
13
< Header />
You can’t perform that action at this time.
0 commit comments