feat(ui,dashboard): Move InlineTip to UI package (#11462)
This commit is contained in:
+2
-3
@@ -1,12 +1,11 @@
|
||||
import { zodResolver } from "@hookform/resolvers/zod"
|
||||
import { HttpTypes } from "@medusajs/types"
|
||||
import { Button, Heading, Input, toast } from "@medusajs/ui"
|
||||
import { Button, Heading, InlineTip, Input, toast } from "@medusajs/ui"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import { z } from "zod"
|
||||
|
||||
import { Form } from "../../../../../components/common/form"
|
||||
import { InlineTip } from "../../../../../components/common/inline-tip"
|
||||
import {
|
||||
RouteFocusModal,
|
||||
StackedFocusModal,
|
||||
@@ -118,7 +117,7 @@ export function CreateServiceZoneForm({
|
||||
/>
|
||||
</div>
|
||||
|
||||
<InlineTip>
|
||||
<InlineTip label={t("general.tip")}>
|
||||
{t("stockLocations.serviceZones.fields.tip")}
|
||||
</InlineTip>
|
||||
|
||||
|
||||
+4
-3
@@ -1,11 +1,10 @@
|
||||
import { HttpTypes } from "@medusajs/types"
|
||||
import { Button, Input, toast } from "@medusajs/ui"
|
||||
import { Button, InlineTip, Input, toast } from "@medusajs/ui"
|
||||
import { useForm } from "react-hook-form"
|
||||
import { useTranslation } from "react-i18next"
|
||||
import * as zod from "zod"
|
||||
|
||||
import { Form } from "../../../../../components/common/form"
|
||||
import { InlineTip } from "../../../../../components/common/inline-tip"
|
||||
import { RouteDrawer, useRouteModal } from "../../../../../components/modals"
|
||||
import { KeyboundForm } from "../../../../../components/utilities/keybound-form"
|
||||
import { useUpdateFulfillmentSetServiceZone } from "../../../../../hooks/api/fulfillment-sets"
|
||||
@@ -83,7 +82,9 @@ export const EditServiceZoneForm = ({
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<InlineTip>{t("stockLocations.serviceZones.fields.tip")}</InlineTip>
|
||||
<InlineTip label={t("general.tip")}>
|
||||
{t("stockLocations.serviceZones.fields.tip")}
|
||||
</InlineTip>
|
||||
</div>
|
||||
</RouteDrawer.Body>
|
||||
<RouteDrawer.Footer>
|
||||
|
||||
+2
-2
@@ -6,6 +6,7 @@ import {
|
||||
Heading,
|
||||
Hint,
|
||||
IconButton,
|
||||
InlineTip,
|
||||
Input,
|
||||
Label,
|
||||
Text,
|
||||
@@ -21,7 +22,6 @@ import {
|
||||
import { useTranslation } from "react-i18next"
|
||||
|
||||
import { Form } from "../../../../../../../components/common/form"
|
||||
import { InlineTip } from "../../../../../../../components/common/inline-tip"
|
||||
import { SortableList } from "../../../../../../../components/common/sortable-list"
|
||||
import { SwitchBox } from "../../../../../../../components/common/switch-box"
|
||||
import { ChipInput } from "../../../../../../../components/inputs/chip-input"
|
||||
@@ -522,7 +522,7 @@ export const ProductCreateVariantsSection = ({
|
||||
</Alert>
|
||||
)}
|
||||
{variants.fields.length > 0 && (
|
||||
<InlineTip variant="tip">
|
||||
<InlineTip label={t("general.tip")}>
|
||||
{t("products.create.variants.productVariants.tip")}
|
||||
</InlineTip>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user