Skip to content

Commit

Permalink
added new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarika-padmanaban committed Aug 25, 2024
1 parent 7d5a84d commit c66aa0f
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/common/AddOrganizationMember.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,21 @@ const AddOrganizationMember = ({
}
}
};
const save =(event)=>{
if (inputValue.trim()) {
handleTextField((prev) => [...prev, inputValue.trim()]);
setInputValue("");
}
}

const handleAddButtonClick = async() => {
save();
await(handleTextField)
setTimeout(() => {
addBtnClickHandler();
handleUserDialogClose();
}, 1000);
};
// const save =(event)=>{
// if (inputValue.trim()) {
// handleTextField((prev) => [...prev, inputValue.trim()]);
// setInputValue("");
// }
// }

// const handleAddButtonClick = async() => {
// save();
// await(handleTextField)
// setTimeout(() => {
// addBtnClickHandler();
// handleUserDialogClose();
// }, 1000);
// };


useEffect(() => {
Expand Down Expand Up @@ -112,7 +112,6 @@ const AddOrganizationMember = ({
id="add-members"
value={textFieldValue}
onChange={(event, newValue, reason) => {

console.log("hello",event,newValue,reason);

}}
Expand Down

0 comments on commit c66aa0f

Please sign in to comment.