fix(dashboard): handle deleted products/variants in the order domain (#9841)

* fix: optional variants and products

* fix: more cases with inventory

* fix: fulfillment creation modal

* fix: move create fulfillment actions to footer

* refactor: use properties of the LineItem

* fix: remove N/A

* fix: remove ||

* fix: show confirmed status properly

* fix: pick needed product props

* fix: typo
This commit is contained in:
Frane Polić
2024-11-12 09:05:11 +01:00
committed by GitHub
parent 713e428ec2
commit 81208b6e1d
23 changed files with 111 additions and 94 deletions

View File

@@ -4,12 +4,12 @@ import { Thumbnail } from "../../../../common/thumbnail"
import { HttpTypes } from "@medusajs/types"
type ProductCellProps = {
product: HttpTypes.AdminProduct
product: Pick<HttpTypes.AdminProduct, "thumbnail" | "title">
}
export const ProductCell = ({ product }: ProductCellProps) => {
return (
<div className="flex h-full w-full items-center gap-x-3 overflow-hidden max-w-[250px]">
<div className="flex h-full w-full max-w-[250px] items-center gap-x-3 overflow-hidden">
<div className="w-fit flex-shrink-0">
<Thumbnail src={product.thumbnail} />
</div>