We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fca1d2 commit cf4680aCopy full SHA for cf4680a
1 file changed
client/devdocs/design/wordpress-components-gallery/date-time-picker.tsx
@@ -2,7 +2,7 @@ import { DateTimePicker } from '@wordpress/components';
2
import { useState } from 'react';
3
4
const DateTimePickerExample = () => {
5
- const [ dateTime, setDateTime ] = useState( '' );
+ const [ dateTime, setDateTime ] = useState< string | null >( '' );
6
7
return <DateTimePicker currentDate={ dateTime } onChange={ setDateTime } />;
8
};
0 commit comments