23
app/routes/Forms/DatePicker/components/ButtonInput.js
Executable file
23
app/routes/Forms/DatePicker/components/ButtonInput.js
Executable file
@@ -0,0 +1,23 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import {
|
||||
Button
|
||||
} from './../../../../components';
|
||||
|
||||
// eslint-disable-next-line react/display-name
|
||||
const ButtonInputFR = React.forwardRef((props, ref) => (
|
||||
<Button outline
|
||||
onClick={props.onClick}
|
||||
ref={ref}
|
||||
>
|
||||
<i className="fa fa-fw fa-calendar-o mr-1" />
|
||||
{ props.value }
|
||||
</Button>
|
||||
));
|
||||
ButtonInputFR.propTypes = {
|
||||
onClick: PropTypes.func,
|
||||
value: PropTypes.string
|
||||
}
|
||||
|
||||
export { ButtonInputFR as ButtonInput };
|
Reference in New Issue
Block a user