Chore(medusa,utils,types,inventory,stock-location): remove core dependency modules (#3531)
This commit is contained in:
committed by
GitHub
parent
bfef22b33e
commit
4e9d257d3b
@@ -1,4 +1,5 @@
|
||||
import { Country, StockLocationAddressDTO } from "@medusajs/medusa"
|
||||
import { Country } from "@medusajs/medusa"
|
||||
import { StockLocationAddressDTO } from "@medusajs/types"
|
||||
import { useAdminRegions } from "medusa-react"
|
||||
import { useEffect, useMemo, useState } from "react"
|
||||
import { Controller, useWatch } from "react-hook-form"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SalesChannel, StockLocationExpandedDTO } from "@medusajs/medusa"
|
||||
import { SalesChannel } from "@medusajs/medusa"
|
||||
import { StockLocationExpandedDTO } from "@medusajs/types"
|
||||
import {
|
||||
useAdminAddLocationToSalesChannel,
|
||||
useAdminRemoveLocationFromSalesChannel
|
||||
} from "medusa-react"
|
||||
|
||||
import SalesChannelsModal from "../../../../../components/forms/product/sales-channels-modal"
|
||||
import Button from "../../../../../components/fundamentals/button"
|
||||
import useToggleState from "../../../../../hooks/use-toggle-state"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StockLocationDTO } from "@medusajs/medusa"
|
||||
import { StockLocationDTO } from "@medusajs/types"
|
||||
import { useAdminDeleteStockLocation } from "medusa-react"
|
||||
import React from "react"
|
||||
import IconBadge from "../../../../../components/fundamentals/icon-badge"
|
||||
@@ -6,7 +6,7 @@ import BuildingsIcon from "../../../../../components/fundamentals/icons/building
|
||||
import EditIcon from "../../../../../components/fundamentals/icons/edit-icon"
|
||||
import TrashIcon from "../../../../../components/fundamentals/icons/trash-icon"
|
||||
import Actionables, {
|
||||
ActionType,
|
||||
ActionType
|
||||
} from "../../../../../components/molecules/actionables"
|
||||
import useImperativeDialog from "../../../../../hooks/use-imperative-dialog"
|
||||
import useNotification from "../../../../../hooks/use-notification"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StockLocationExpandedDTO } from "@medusajs/medusa"
|
||||
import { StockLocationExpandedDTO } from "@medusajs/types"
|
||||
import SalesChannelsList from "../../../../../components/molecules/sales-channels-list"
|
||||
import EditSalesChannels from "../edit-sales-channels"
|
||||
|
||||
|
||||
@@ -1,28 +1,27 @@
|
||||
import {
|
||||
AdminPostStockLocationsReq,
|
||||
SalesChannel,
|
||||
StockLocationAddressDTO,
|
||||
StockLocationAddressInput,
|
||||
} from "@medusajs/medusa"
|
||||
import GeneralForm, { GeneralFormType } from "../components/general-form"
|
||||
import { AdminPostStockLocationsReq, SalesChannel } from "@medusajs/medusa"
|
||||
import {
|
||||
useAdminAddLocationToSalesChannel,
|
||||
useAdminCreateStockLocation,
|
||||
useAdminCreateStockLocation
|
||||
} from "medusa-react"
|
||||
import GeneralForm, { GeneralFormType } from "../components/general-form"
|
||||
|
||||
import Accordion from "../../../../components/organisms/accordion"
|
||||
import AddressForm from "../components/address-form"
|
||||
import {
|
||||
StockLocationAddressDTO,
|
||||
StockLocationAddressInput
|
||||
} from "@medusajs/types"
|
||||
import { useForm } from "react-hook-form"
|
||||
import Button from "../../../../components/fundamentals/button"
|
||||
import CrossIcon from "../../../../components/fundamentals/icons/cross-icon"
|
||||
import DeletePrompt from "../../../../components/organisms/delete-prompt"
|
||||
import FocusModal from "../../../../components/molecules/modal/focus-modal"
|
||||
import SalesChannelsForm from "../components/sales-channels-form"
|
||||
import { getErrorMessage } from "../../../../utils/error-messages"
|
||||
import { nestedForm } from "../../../../utils/nested-form"
|
||||
import { useFeatureFlag } from "../../../../providers/feature-flag-provider"
|
||||
import { useForm } from "react-hook-form"
|
||||
import Accordion from "../../../../components/organisms/accordion"
|
||||
import DeletePrompt from "../../../../components/organisms/delete-prompt"
|
||||
import useNotification from "../../../../hooks/use-notification"
|
||||
import useToggleState from "../../../../hooks/use-toggle-state"
|
||||
import { useFeatureFlag } from "../../../../providers/feature-flag-provider"
|
||||
import { getErrorMessage } from "../../../../utils/error-messages"
|
||||
import { nestedForm } from "../../../../utils/nested-form"
|
||||
import AddressForm from "../components/address-form"
|
||||
import SalesChannelsForm from "../components/sales-channels-form"
|
||||
|
||||
type NewLocationForm = {
|
||||
general: GeneralFormType
|
||||
|
||||
Reference in New Issue
Block a user