Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
[DialogUser] Created base for #250 issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaykaNya committed Dec 17, 2020
1 parent 35e377c commit 6c2cf57
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const DialogUser = React.forwardRef((props: DialogUserProps, ref: Ref<any>) => {
const loggedUser = getUser();


// const [user, setUser] = useState<UserData | null>(userOrg);
const [isAddRoleToUserButtonActive, setIsAddRoleToUserButtonActive] = useState<null | HTMLElement>(null);
const [isRemoveRoleFromUserButtonActive, setIsRemoveRoleFromUserButtonActive] = useState<null | HTMLElement>(null);
const [filterRoles, setFilterRoles] = useState<Role[]>(roles);
Expand All @@ -86,6 +87,10 @@ const DialogUser = React.forwardRef((props: DialogUserProps, ref: Ref<any>) => {
setFilterRoles(roles);
}, [roles]);

// useEffect(() => {
// setUser(userOrg);
// }, [userOrg]);

function handleSearch(event: React.ChangeEvent<HTMLInputElement>) {
setSearchValue(event.target.value.toLowerCase());
}
Expand Down

0 comments on commit 6c2cf57

Please sign in to comment.