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:
Abdul Rahman
2026-04-08 20:35:36 +05:30
parent a3d7ef76cb
commit aae3f4301b
@@ -300,7 +300,6 @@ export const NavigationDrawerItem = ({
const isInternalLink = isDefined(to) && !isExternalLink;
const handleExternalLinkClick = () => {
handleBeforeNavigation();
if (isDefined(to)) {
window.open(to, '_blank', 'noopener,noreferrer');
}