fix(dashboard): order list statuses (#7948)

* fix: order list statuses

* refactor: remove todo
This commit is contained in:
Frane Polić
2024-07-04 16:17:53 +02:00
committed by GitHub
parent 32998b7527
commit 32982e708a
5 changed files with 18 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
import type { PaymentStatus } from "@medusajs/medusa"
import { useTranslation } from "react-i18next"
import { getOrderPaymentStatus } from "../../../../../lib/order-helpers"
import { StatusCell } from "../../common/status-cell"
@@ -10,9 +9,6 @@ type PaymentStatusCellProps = {
export const PaymentStatusCell = ({ status }: PaymentStatusCellProps) => {
const { t } = useTranslation()
// TODO: remove this when Order<>Payments are linked
return "-"
const { label, color } = getOrderPaymentStatus(t, status)
return <StatusCell color={color}>{label}</StatusCell>