Skip to content

Commit c59c282

Browse files
docs(tutorial): removed refineCoreProps from the ANTD example (#6788)
Co-authored-by: DoguhanOzgurAkca <[email protected]>
1 parent 5e7e5b3 commit c59c282

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

documentation/docs/guides-concepts/forms/server-side-validation-antd.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ const { Title } = Typography;
122122
const { TextArea } = Input;
123123
124124
export const ProductCreate = () => {
125-
const { formProps, saveButtonProps } = useForm({ refineCoreProps: { redirect: "show" }});
125+
const { formProps, saveButtonProps } = useForm({ redirect: "show" });
126126
127127
return (
128128
<Create saveButtonProps={saveButtonProps}>
129129
<Form {...formProps} layout="vertical">
130-
<Form.Item
130+
<Form.Item
131131
label="Name"
132132
name="name"
133133
>

documentation/tutorial/ui-libraries/refactoring/ant-design/react-router/index.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,7 @@ import { Form, Input, Select, InputNumber } from "antd";
326326
export const EditProduct = () => {
327327
// highlight-start
328328
const { formProps, saveButtonProps, query } = useForm({
329-
refineCoreProps: {
330-
redirect: "show",
331-
},
329+
redirect: "show",
332330
});
333331
// highlight-end
334332

@@ -381,9 +379,7 @@ import { Form, Input, Select, InputNumber } from "antd";
381379
export const CreateProduct = () => {
382380
// highlight-start
383381
const { formProps, saveButtonProps } = useForm({
384-
refineCoreProps: {
385-
redirect: "edit",
386-
},
382+
redirect: "edit",
387383
});
388384
// highlight-end
389385

0 commit comments

Comments
 (0)