refactor: 提示与确认框改用 App 上下文实例
CI / Static checks (push) Has been cancelled
CI / Production build (push) Has been cancelled
CI / API integration (push) Has been cancelled
CI / Taro builds (acheng-campus-food) (push) Has been cancelled
CI / Taro builds (atelier-solopreneur) (push) Has been cancelled
CI / Taro builds (linjing-editorial) (push) Has been cancelled
CI / Browser regression (push) Has been cancelled

This commit is contained in:
que01 committed 2026-10-21 10:34:34 +08:00
1 parent 3a0099e674
commit 06619a191f
22 files changed
+167 -27

No files matched your search

@@ -1,4 +1,4 @@
import { message } from "antd";
import { App } from "antd";
import { useMutation } from "@tanstack/react-query";
import type { FormInstance } from "antd";
import type { BrandFieldDefinition, InquiryForm } from "@personal-brand/api-client";
@@ -19,6 +19,7 @@ export function useFieldMutations({
queryClient,
onClose,
}: FieldMutationOptions) {
const { message } = App.useApp();
const createField = useMutation({
mutationFn: (values: Omit<BrandFieldDefinition, "id" | "source">) =>
client.createAdminField(values),
@@ -49,6 +50,7 @@ export function useInquiryFormMutations({
};
onClose: () => void;
}) {
const { message } = App.useApp();
const createForm = useMutation({
mutationFn: (values: {
name: string;