Skip to content

Commit

Permalink
docs: fix customize (ant-design#45022)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ authored Sep 22, 2023
1 parent 3928ce9 commit 71d5784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/react/use-custom-date-library.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<PickerTimeProps<Moment>, 'picker'> {}

Expand Down
5 changes: 3 additions & 2 deletions docs/react/use-custom-date-library.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<PickerTimeProps<Moment>, 'picker'> {}

Expand Down

0 comments on commit 71d5784

Please sign in to comment.