mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Upgrade ts to the latest version and fix type errors
This commit is contained in:
@@ -11,7 +11,9 @@ import messages from './footerMenu.intl.json';
|
||||
|
||||
const FooterMenu: ComponentType = () => {
|
||||
const dispatch = useDispatch();
|
||||
const onLanguageSwitcherClick = useCallback<MouseEventHandler>(
|
||||
const onLanguageSwitcherClick = useCallback<
|
||||
MouseEventHandler<HTMLAnchorElement>
|
||||
>(
|
||||
(event) => {
|
||||
event.preventDefault();
|
||||
dispatch(createPopup({ Popup: LanguageSwitcher }));
|
||||
|
||||
Reference in New Issue
Block a user