fix(dashboard): order list statuses (#7948)
* fix: order list statuses * refactor: remove todo
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user