Grégoire Delattre bcadc48d5a Launch prettier with the --fix option
They've changed their default settings, this changes a lot of stuff in
our code base.
2020-04-01 17:55:34 +02:00

21 lines
487 B
JavaScript

import React from "react";
import PropTypes from "prop-types";
export const FormInput = ({ label, value, updateValue }) => {
return (
<div className="form-group">
<label className="control-label">{label}</label>
<input
className="form-control"
value={value}
onChange={(e) => updateValue(e.target.value)}
/>
</div>
);
};
FormInput.propTypes = {
label: PropTypes.string,
value: PropTypes.string,
updateValue: PropTypes.func,
};