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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user