Skip to content

Commit 5885e76

Browse files
authored
Merge pull request #211 from w3bdesign/development
Minor improvements
2 parents 2ef5d00 + 52798ff commit 5885e76

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

components/Checkout/Billing.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const Billing = ({ onSubmit }) => {
3434
<>
3535
<section className="relative text-gray-700 body-font">
3636
<form onSubmit={handleSubmit(onSubmit)}>
37-
<div className="container py-2 mx-auto ml-8">
37+
<div className="container py-2 mx-auto ml-6">
3838
<CheckoutTitle title="Betalingsdetaljer" />
3939
<div className="mx-auto lg:w-1/2 md:w-2/3">
4040
<div className="flex flex-wrap -m-2">

components/Checkout/OrderDetailsCartItem.component.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import { useState } from 'react';
2-
31
const OrderDetailsCartItem = ({ item }) => {
4-
const [productCount, setProductCount] = useState(item.qty);
5-
62
return (
73
<tr className="bg-gray-100">
84
<td className="px-0 py-2 border sm:px-4 md:px-4 lg:px-4 xl:px-4">
@@ -21,7 +17,7 @@ const OrderDetailsCartItem = ({ item }) => {
2117
{'string' !== typeof item.price ? item.price.toFixed(2) : item.price}
2218
</td>
2319

24-
<td className="px-4 py-2 border">{productCount}</td>
20+
<td className="px-4 py-2 border">{item.qty}</td>
2521

2622
<td className="px-4 py-2 border">
2723
{'string' !== typeof item.totalPrice

pages/kasse.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import PageTitle from 'components/Header/PageTitle.component';
21
import CheckoutForm from 'components/Checkout/CheckoutForm.component';
32

43
const Kasse = () => (
54
<>
6-
<PageTitle title="Kasse" />
75
<CheckoutForm />
86
</>
97
);

0 commit comments

Comments
 (0)