Skip to content

Commit f98acae

Browse files
committed
Clarify DatePicker comments
1 parent 9ab7924 commit f98acae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

custom-component-library/components/DatePicker/component.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ export const DateTimePicker: React.FC<CustomNodeProps<DatePickerCustomProps>> =
4949
const stringStyle = getStyles('string', nodeData)
5050

5151
return isEditing ? (
52-
// Picker only shows up when "editing". Due to the `showOnView: false` in
53-
// the definition below, this component will not show at all when viewing
54-
// (and so will show raw ISO strings). However, we've defined an alternative
55-
// here too, when showOnView == true, in which case the date/time string is
56-
// shown as a localised date/time.
52+
// By default, DatePicker only shows up when "editing". Due to the
53+
// `showOnView: false` in the definition below, this component will not show
54+
// at all when viewing (and so will show raw ISO strings). However, we've
55+
// defined an alternative here too, when showOnView == true, in which case
56+
// the date/time string is shown as a localised date/time.
5757
<DatePicker
5858
// Check to prevent invalid date (from previous data value) crashing the
5959
// component

0 commit comments

Comments
 (0)