Skip to content

Commit

Permalink
Make DateTimePicker respect dateLabel and timeLabel
Browse files Browse the repository at this point in the history
DateTimePicker now makes use of the dateLabel and timeLabel properties
of the object passed in the strings prop.
  • Loading branch information
robert-lindstrom committed Jul 29, 2019
1 parent 0fb2e99 commit 1acac33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/dateTimePicker/DateTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
if (dateConvention === DateConvention.DateTime) {
timeElm = (
<div className={css(styles.row, styles.timeRow)}>
<div className={styles.labelCell}><Label className={styles.fieldLabel}>{strings.DateTimePickerTime}</Label></div>
<div className={styles.labelCell}><Label className={styles.fieldLabel}>{dateStrings.timeLabel}</Label></div>

<div className={styles.time}>
<div className={styles.picker}>
Expand Down Expand Up @@ -265,7 +265,7 @@ export class DateTimePicker extends React.Component<IDateTimePickerProps, IDateT
<div className={styles.container}>
<div className={styles.row}>
<div className={styles.labelCell}>
<Label className={styles.fieldLabel}>{strings.DateTimePickerDate}</Label>
<Label className={styles.fieldLabel}>{dateStrings.dateLabel}</Label>
</div>

<div className={styles.picker}>
Expand Down

0 comments on commit 1acac33

Please sign in to comment.