Skip to content

Commit cf4680a

Browse files
committed
Fix useState types for date time picker example
1 parent 2fca1d2 commit cf4680a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/devdocs/design/wordpress-components-gallery/date-time-picker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { DateTimePicker } from '@wordpress/components';
22
import { useState } from 'react';
33

44
const DateTimePickerExample = () => {
5-
const [ dateTime, setDateTime ] = useState( '' );
5+
const [ dateTime, setDateTime ] = useState< string | null >( '' );
66

77
return <DateTimePicker currentDate={ dateTime } onChange={ setDateTime } />;
88
};

0 commit comments

Comments
 (0)