Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Updated lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
PK106552 committed Feb 16, 2024
1 parent f354a0f commit 224a65d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/terra-date-picker/src/DateInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,6 @@ const DatePickerInput = (props) => {
if (DateUtil.isValidDate(value, momentDateFormat)) {
inputDate = `${getLocalizedDateForScreenReader(DateUtil.createSafeDate(dateValue, initialTimeZone), { intl, locale: intl.locale })}`;
}
let calendarDate = inputDate ? `${inputDate} ${intl.formatMessage({ id: 'Terra.datePicker.selected' })}` : '';

// Check if date is excluded or out of range or not included or filtered
let invalidEntry = '';
Expand All @@ -824,7 +823,6 @@ const DatePickerInput = (props) => {
|| DateUtil.isDateNotIncluded(DateUtil.createSafeDate(dateValue, initialTimeZone), props.includeDates)
|| (props.filterDate && !props.filterDate(DateUtil.createSafeDate(dateValue, initialTimeZone)))) {
invalidEntry = `${intl.formatMessage({ id: 'Terra.datePicker.invalidDate' })}.`;
calendarDate = '';
}

return (
Expand Down
4 changes: 2 additions & 2 deletions packages/terra-date-time-picker/src/DateTimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ const propTypes = {
* If the `variant` prop if set to `12-hour` for one of these supported locales, the variant will be ignored and defaults to `24-hour`.
*/
timeVariant: PropTypes.oneOf([DateTimeUtils.FORMAT_12_HOUR, DateTimeUtils.FORMAT_24_HOUR]),
/**
/**
* If invalid error text is used, provide a string containing the IDs for error html element.
* ID must be htmlFor prop value with error text.
*/
ariaDescribedBy: PropTypes.string,
ariaDescribedBy: PropTypes.string,
};

const defaultProps = {
Expand Down

0 comments on commit 224a65d

Please sign in to comment.