Created DateInput component test

This commit is contained in:
Alejandro Celaya
2018-08-12 09:01:11 +02:00
parent faa828c58a
commit f23245a39c
2 changed files with 45 additions and 5 deletions

View File

@@ -24,11 +24,13 @@ export default class DateInput extends React.Component {
readOnly
ref={this.inputRef}
/>
{showCalendarIcon && <FontAwesomeIcon
icon={calendarIcon}
className="date-input-container__icon"
onClick={() => this.inputRef.current.input.focus()}
/>}
{showCalendarIcon && (
<FontAwesomeIcon
icon={calendarIcon}
className="date-input-container__icon"
onClick={() => this.inputRef.current.input.focus()}
/>
)}
</div>
);
}