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 isCurrentAccountStaff = isStaff(currentAccount) || false;
|
||||||
const otherAccounts = useAppSelector((state) => authUsers.map((authUser: any) => getAccount(state, authUser.get('id'))));
|
const otherAccounts = useAppSelector((state) => authUsers.map((authUser: any) => getAccount(state, authUser.get('id'))));
|
||||||
|
|
||||||
const handleLogOut = (event: React.MouseEvent) => {
|
const handleLogOut = () => {
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
dispatch(logOut(intl));
|
dispatch(logOut(intl));
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSwitchAccount = (account: AccountEntity) => {
|
const handleSwitchAccount = (account: AccountEntity) => {
|
||||||
return (event: React.MouseEvent) => {
|
return () => {
|
||||||
dispatch(switchAccount(account.id));
|
dispatch(switchAccount(account.id));
|
||||||
event.preventDefault();
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue