diff --git a/components/cart/CartFooter.tsx b/components/cart/CartFooter.tsx index 7332ad0..615b411 100644 --- a/components/cart/CartFooter.tsx +++ b/components/cart/CartFooter.tsx @@ -1,5 +1,6 @@ import React, { useContext } from "react"; import { CartContext } from "pages/cart"; +import Link from "next/link"; const CartFooter: React.FC = () => { const { cartState } = useContext(CartContext); @@ -12,13 +13,12 @@ const CartFooter: React.FC = () => {
税と配送料は購入手続き時に計算されます
-
- - ご購入手続きへ - +
+ + + ご購入手続きへ + +
); diff --git a/components/cart/CartItemRow.tsx b/components/cart/CartItemRow.tsx index 1862e1b..89c3e9c 100644 --- a/components/cart/CartItemRow.tsx +++ b/components/cart/CartItemRow.tsx @@ -3,6 +3,7 @@ import Image from "next/image"; import { LineItem } from "shopify-buy"; import { CartContext } from "pages/cart"; import { QuantityInput } from "components/cart/QuantityInput"; +import Link from "next/link"; type Props = { item: LineItem; @@ -24,27 +25,37 @@ const CartItemRow: React.FC = ({ item }) => { }; return ( - - + +
-
- + - - + + {title} + +
-
- + - {title} - + {title} +
{item.variant.selectedOptions.map((opt, idx) => ( -
+
{opt.name}: {opt.value}
@@ -53,7 +64,7 @@ const CartItemRow: React.FC = ({ item }) => {
@@ -61,19 +72,19 @@ const CartItemRow: React.FC = ({ item }) => {
- +
¥{price.toLocaleString("ja-JP")}
-
-