React component for managing stock locations associated with inventory items in the Medusa admin dashboard, supporting batch updates and search.
// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import {
AdminInventoryItem,
AdminStockLocation,
HttpTypes,
} from "@medusajs/types"
import { Button, Text, toast } from "@medusajs/ui"
import { useTranslation } from "react-i18next"
import { RouteDrawer, useRouteModal } from "../../../../../../components/modals"
import { useBatchInventoryItemLocationLevels } from "../../../../../../hooks/api/inventory"
import { sdk } from "../../../../../../lib/client"
import { useMemo, useState } from "react"
import { LocationItem } from "./location-item"
import { LocationSearchInput } from "./location-search-input"
import { InfiniteList } from "../../../../../../components/common/infinite-list/inf
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key