Remove unneeded 'event' when using Reach Menu
This commit is contained in:
parent
02d65a527c
commit
430cfc3a2a
1 changed files with 2 additions and 5 deletions
|
@ -43,16 +43,13 @@ const ProfileDropdown: React.FC<IProfileDropdown> = ({ account, children }) => {
|
|||
const isCurrentAccountStaff = isStaff(currentAccount) || false;
|
||||
const otherAccounts = useAppSelector((state) => authUsers.map((authUser: any) => getAccount(state, authUser.get('id'))));
|
||||
|
||||
const handleLogOut = (event: React.MouseEvent) => {
|
||||
event.preventDefault();
|
||||
|
||||
const handleLogOut = () => {
|
||||
dispatch(logOut(intl));
|
||||
};
|
||||
|
||||
const handleSwitchAccount = (account: AccountEntity) => {
|
||||
return (event: React.MouseEvent) => {
|
||||
return () => {
|
||||
dispatch(switchAccount(account.id));
|
||||
event.preventDefault();
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue