Framework for entering time tickets BOD-183 BOD-185

This commit is contained in:
Patrick Fic
2020-07-02 15:01:44 -07:00
parent 044fb4b9e0
commit c89e0565a0
11 changed files with 224 additions and 18 deletions

View File

@@ -4,7 +4,14 @@ const { Option } = Select;
//To be used as a form element only.
const JobSearchSelect = ({ value, onChange, options, onBlur, disabled }) => {
const JobSearchSelect = ({
value,
onChange,
options,
onBlur,
disabled,
loading,
}) => {
const [option, setOption] = useState(value);
useEffect(() => {
@@ -22,6 +29,7 @@ const JobSearchSelect = ({ value, onChange, options, onBlur, disabled }) => {
style={{
width: 300,
}}
loading={loading}
onChange={setOption}
optionFilterProp="children"
onBlur={onBlur}