🐛 bug: fix bug in Account Page

This commit is contained in:
sonnguyenkieio
2021-09-16 12:45:12 +07:00
parent 149c12fbe4
commit 149bc296ab
2 changed files with 14 additions and 11 deletions

View File

@@ -1,23 +1,26 @@
@import '../../../../styles/utilities';
.accountPage {
@apply spacing-horizontal;
background-color: #F5F4F2;
margin-top: -3.2rem;
padding-top: 3.2rem;
padding-bottom: 3.2rem;
padding: 3.2rem 2rem;
min-height: 70rem;
@screen md {
padding-left: 3.2rem;
padding-right: 3.2rem;
padding-left: 2.8rem;
padding-right: 2.8rem;
}
@screen lg {
padding-left: 6.4rem;
padding-right: 6.4rem;
}
@screen xl {
@apply spacing-horizontal
padding-left: 11.2rem;
padding-right: 11.2rem;
}
.header {
margin-bottom: 1.2rem;

View File

@@ -25,7 +25,7 @@ const OrderInformation = ({ waiting, delivering, delivered} : OrderInformationPr
{
waiting.map((order, i) => {
return (
<DeliveryItem key={order.id} id={order.id} status="Waiting" products={order.products} totalPrice={order.totalPrice} />
<DeliveryItem key={order.id} id={order.id} status="waiting" products={order.products} totalPrice={order.totalPrice} />
)
})
}
@@ -36,7 +36,7 @@ const OrderInformation = ({ waiting, delivering, delivered} : OrderInformationPr
{
delivering.map((order, i) => {
return (
<DeliveryItem key={order.id} id={order.id} status="Delivering" products={order.products} totalPrice={order.totalPrice} />
<DeliveryItem key={order.id} id={order.id} status="delivering" products={order.products} totalPrice={order.totalPrice} />
)
})
}
@@ -47,7 +47,7 @@ const OrderInformation = ({ waiting, delivering, delivered} : OrderInformationPr
{
delivered.map((order, i) => {
return (
<DeliveryItem key={order.id} id={order.id} status="Delivered" products={order.products} totalPrice={order.totalPrice} />
<DeliveryItem key={order.id} id={order.id} status="delivered" products={order.products} totalPrice={order.totalPrice} />
)
})
}