Product Variant Inventory Section (variant-inventory-section/variant-inventory-section.tsx)

medusa · packages/admin/dashboard/src/routes/product-variants/product-variant-detail/components/variant-inventory-section/variant-inventory-section.tsx · typescript · MIT
ui, pos, payments, fw:react, tag:medusa

React admin dashboard component displaying inventory items for product variants with sortable, paginated data table and action menu.

// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import { useTranslation } from "react-i18next"

import { Buildings, Component } from "@medusajs/icons"
import { HttpTypes } from "@medusajs/types"
import { Container, Heading } from "@medusajs/ui"

import { ActionMenu } from "../../../../../components/common/action-menu"
import { _DataTable } from "../../../../../components/table/data-table"

import { LinkButton } from "../../../../../components/common/link-button"
import { useDataTable } from "../../../../../hooks/use-data-table"
import { useInventoryTableColumns } from "./use-inventory-table-columns"

const PAGE_SIZE = 20

type VariantInventorySectionProps = {
  inventoryItems: (HttpTypes

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key