Skip to content

Commit

Permalink
fix: order details status (#10650)
Browse files Browse the repository at this point in the history
  • Loading branch information
fPolic authored Dec 18, 2024
1 parent c9b8db0 commit c7008bb
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export const OrderGeneralSection = ({ order }: OrderGeneralSectionProps) => {
<div className="flex items-center gap-x-4">
<div className="flex items-center gap-x-1.5">
<PaymentBadge order={order} />
{/*TODO: SHOW ORDER STATUS INSTEAD OF FULFILLMENT STATUS HERE - if the last fulfillment is canceled it looks like the order is canceled*/}
<FulfillmentBadge order={order} />
</div>
<ActionMenu
Expand All @@ -71,6 +70,7 @@ export const OrderGeneralSection = ({ order }: OrderGeneralSectionProps) => {
{
label: t("actions.cancel"),
onClick: handleCancel,
disabled: !!order.canceled_at,
icon: <XCircle />,
},
],
Expand Down Expand Up @@ -100,11 +100,6 @@ const FulfillmentBadge = ({ order }: { order: HttpTypes.AdminOrder }) => {
const PaymentBadge = ({ order }: { order: HttpTypes.AdminOrder }) => {
const { t } = useTranslation()

/**
* TODO: revisit when Order<>Payment are linked
*/
return null

const { label, color } = getOrderPaymentStatus(t, order.payment_status)

return (
Expand Down

0 comments on commit c7008bb

Please sign in to comment.