mirror of
https://github.com/docmost/docmost.git
synced 2026-05-21 17:22:54 +08:00
@@ -12,9 +12,9 @@ import {
|
||||
TextInput,
|
||||
} from "@mantine/core";
|
||||
import { IconEdit } from "@tabler/icons-react";
|
||||
import { z } from "zod";
|
||||
import { z } from "zod/v4";
|
||||
import { useForm } from "@mantine/form";
|
||||
import { zodResolver } from "mantine-form-zod-resolver";
|
||||
import { zod4Resolver } from "mantine-form-zod-resolver";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import i18n from "i18next";
|
||||
@@ -49,7 +49,7 @@ export default function EmbedView(props: NodeViewProps) {
|
||||
initialValues: {
|
||||
url: "",
|
||||
},
|
||||
validate: zodResolver(schema),
|
||||
validate: zod4Resolver(schema),
|
||||
});
|
||||
|
||||
const handleResize = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user