Skip to content

Commit

Permalink
style: fix alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
JusJira committed Oct 30, 2023
1 parent 4c3bcd9 commit a030615
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
27 changes: 14 additions & 13 deletions app/(seller)/merchant/order/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ const OrderPage = async () => {
image: true,
orderLineContains: {
orderBy: {
order: {
orderedAt: "desc"
}
order: {
orderedAt: "desc",
},
},
select: {
totalPrice: true,
productId: true,
orderId: true,
quantity: true,
Expand All @@ -75,7 +76,7 @@ const OrderPage = async () => {
user: {
select: {
displayName: true,
address: true
address: true,
},
},
},
Expand Down Expand Up @@ -119,18 +120,18 @@ const OrderPage = async () => {
<div>Product # {d.productId}</div>
<div>Order # {d.orderId}</div>
<div>Quantity : {d.quantity}</div>
<div>Money Paid : {d.totalPrice}</div>
</div>
<Card className="w-[350px]">
<CardHeader>
<CardTitle>Customer Info</CardTitle>
</CardHeader>
<CardContent>
<div>Name : {d.order.user.displayName}</div>
<div>Address : {d.order.user.address}</div>
</CardContent>
</Card>
<CardHeader>
<CardTitle>Customer Info</CardTitle>
</CardHeader>
<CardContent>
<div>Name : {d.order.user.displayName}</div>
<div>Address : {d.order.user.address}</div>
</CardContent>
</Card>
</div>

</AccordionContent>
</AccordionItem>
</Accordion>
Expand Down
4 changes: 3 additions & 1 deletion app/(seller)/merchant/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default async function account() {
<h3 className="text-lg font-medium">Merchant</h3>
</div>
<Separator />
<div className="flex h-full min-h-full flex-row items-center justify-center gap-3 rounded-md bg-white p-3 dark:bg-neutral-900">
<div className="w-full flex items-center justify-center rounded-md bg-white p-3 dark:bg-neutral-900">
<div className="grid grid-cols-3 w-fit h-full min-h-full items-center justify-center gap-3">
<Link
className="flex flex-col items-center justify-center"
href={"/merchant/product"}
Expand Down Expand Up @@ -77,6 +78,7 @@ export default async function account() {
</Link>
</div>
</div>
</div>
<div className="flex h-full min-h-full flex-row items-center justify-center gap-3 rounded-md bg-white p-3 dark:bg-neutral-900">
<Card className="w-[350px]">
<CardHeader>
Expand Down

0 comments on commit a030615

Please sign in to comment.