From 6cc32fb4fd9d924a1d12cf245641b4a16833e419 Mon Sep 17 00:00:00 2001 From: fPolic Date: Mon, 26 Aug 2024 19:32:01 +0200 Subject: [PATCH] feat: singular receive, fix border --- .../order-summary-section.tsx | 51 ++++++++++++------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/packages/admin-next/dashboard/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx b/packages/admin-next/dashboard/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx index abd26f1fe5f0a..526c9cca94b58 100644 --- a/packages/admin-next/dashboard/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx +++ b/packages/admin-next/dashboard/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx @@ -168,26 +168,39 @@ export const OrderSummarySection = ({ order }: OrderSummarySectionProps) => { {(showAllocateButton || showReturns || showPayment || showRefund) && ( -
- {showReturns && ( - ({ - label: t("orders.returns.receive.receive", { - label: `#${r.id.slice(-7)}`, - }), - icon: , - to: `/orders/${order.id}/returns/${r.id}/receive`, - })), - }, - ]} - > - - - )} + ) : ( + ({ + label: t("orders.returns.receive.receive", { + label: `#${r.id.slice(-7)}`, + }), + icon: , + to: `/orders/${order.id}/returns/${r.id}/receive`, + })), + }, + ]} + > + + + ))} {showAllocateButton && (