Remove unused handleBeforeNavigation call in NavigationDrawerItem component
- Eliminated the `handleBeforeNavigation` function call from the `handleExternalLinkClick` method to streamline the navigation logic. - This change enhances code clarity by removing unnecessary function calls, contributing to improved maintainability of the component. These updates simplify the navigation handling within the `NavigationDrawerItem`, aligning with recent refactoring efforts.
This commit is contained in:
-1
@@ -300,7 +300,6 @@ export const NavigationDrawerItem = ({
|
||||
const isInternalLink = isDefined(to) && !isExternalLink;
|
||||
|
||||
const handleExternalLinkClick = () => {
|
||||
handleBeforeNavigation();
|
||||
if (isDefined(to)) {
|
||||
window.open(to, '_blank', 'noopener,noreferrer');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user