You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
497 B
27 lines
497 B
import React, { useState } from 'react';
|
|
|
|
const EditBudget = (props) => {
|
|
const [value, setValue] = useState(props.budget);
|
|
return (
|
|
<>
|
|
<input
|
|
required='required'
|
|
type='number'
|
|
className='form-control mr-3'
|
|
id='name'
|
|
value={value}
|
|
onChange={(event) => setValue(event.target.value)}
|
|
/>
|
|
<button
|
|
type='button'
|
|
className='btn btn-primary'
|
|
onClick={() => props.handleSaveClick(value)}
|
|
>
|
|
Save
|
|
</button>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default EditBudget;
|