From 71d5784d36ab3746efc16832807997f1e630030d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Fri, 22 Sep 2023 17:02:19 +0800 Subject: [PATCH] docs: fix customize (#45022) --- docs/react/use-custom-date-library.en-US.md | 5 +++-- docs/react/use-custom-date-library.zh-CN.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/react/use-custom-date-library.en-US.md b/docs/react/use-custom-date-library.en-US.md index 8d5af6e21092..a72beb578f74 100644 --- a/docs/react/use-custom-date-library.en-US.md +++ b/docs/react/use-custom-date-library.en-US.md @@ -38,10 +38,11 @@ Create `src/components/TimePicker.tsx`. For example: ```tsx -import { DatePicker } from 'antd'; +import * as React from 'react'; import type { PickerTimeProps } from 'antd/es/date-picker/generatePicker'; import type { Moment } from 'moment'; -import * as React from 'react'; + +import DatePicker from './DatePicker'; export interface TimePickerProps extends Omit, 'picker'> {} diff --git a/docs/react/use-custom-date-library.zh-CN.md b/docs/react/use-custom-date-library.zh-CN.md index 96804e61285d..98467c3f2427 100644 --- a/docs/react/use-custom-date-library.zh-CN.md +++ b/docs/react/use-custom-date-library.zh-CN.md @@ -36,10 +36,11 @@ export default MyDatePicker; 编写如下代码: ```tsx -import { DatePicker } from 'antd'; +import * as React from 'react'; import type { PickerTimeProps } from 'antd/es/date-picker/generatePicker'; import type { Moment } from 'moment'; -import * as React from 'react'; + +import DatePicker from './DatePicker'; export interface TimePickerProps extends Omit, 'picker'> {}