Skip to content

Commit 1acac33

Browse files
Make DateTimePicker respect dateLabel and timeLabel
DateTimePicker now makes use of the dateLabel and timeLabel properties of the object passed in the strings prop.
1 parent 0fb2e99 commit 1acac33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/dateTimePicker/DateTimePicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
214214
if (dateConvention === DateConvention.DateTime) {
215215
timeElm = (
216216
<div className={css(styles.row, styles.timeRow)}>
217-
<div className={styles.labelCell}><Label className={styles.fieldLabel}>{strings.DateTimePickerTime}</Label></div>
217+
<div className={styles.labelCell}><Label className={styles.fieldLabel}>{dateStrings.timeLabel}</Label></div>
218218

219219
<div className={styles.time}>
220220
<div className={styles.picker}>
@@ -265,7 +265,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
265265
<div className={styles.container}>
266266
<div className={styles.row}>
267267
<div className={styles.labelCell}>
268-
<Label className={styles.fieldLabel}>{strings.DateTimePickerDate}</Label>
268+
<Label className={styles.fieldLabel}>{dateStrings.dateLabel}</Label>
269269
</div>
270270

271271
<div className={styles.picker}>

0 commit comments

Comments
 (0)