feat(dashboard): Migrate to new hooks and API client (#6963)
This commit is contained in:
+2
-2
@@ -1,10 +1,10 @@
|
||||
import type { ProductCollection } from "@medusajs/medusa"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { ProductCollectionDTO } from "@medusajs/types"
|
||||
import { PlaceholderCell } from "../../common/placeholder-cell"
|
||||
|
||||
type CollectionCellProps = {
|
||||
collection?: ProductCollection | null
|
||||
collection?: ProductCollectionDTO | null
|
||||
}
|
||||
|
||||
export const CollectionCell = ({ collection }: CollectionCellProps) => {
|
||||
|
||||
+2
-3
@@ -1,11 +1,10 @@
|
||||
import type { Product } from "@medusajs/medusa"
|
||||
import type { PricedProduct } from "@medusajs/medusa/dist/types/pricing"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { ProductDTO } from "@medusajs/types"
|
||||
import { Thumbnail } from "../../../../common/thumbnail"
|
||||
|
||||
type ProductCellProps = {
|
||||
product: Product | PricedProduct
|
||||
product: ProductDTO
|
||||
}
|
||||
|
||||
export const ProductCell = ({ product }: ProductCellProps) => {
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
import type { SalesChannel } from "@medusajs/medusa"
|
||||
import { Tooltip } from "@medusajs/ui"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { SalesChannelDTO } from "@medusajs/types"
|
||||
import { PlaceholderCell } from "../../common/placeholder-cell"
|
||||
|
||||
type SalesChannelsCellProps = {
|
||||
salesChannels?: SalesChannel[] | null
|
||||
salesChannels?: SalesChannelDTO[] | null
|
||||
}
|
||||
|
||||
export const SalesChannelsCell = ({
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
import { ProductVariant } from "@medusajs/medusa"
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { ProductVariantDTO } from "@medusajs/types"
|
||||
import { PlaceholderCell } from "../../common/placeholder-cell"
|
||||
|
||||
type VariantCellProps = {
|
||||
variants?: ProductVariant[] | null
|
||||
variants?: ProductVariantDTO[] | null
|
||||
}
|
||||
|
||||
export const VariantCell = ({ variants }: VariantCellProps) => {
|
||||
|
||||
Reference in New Issue
Block a user