orcs-design-system 3.3.63 → 3.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,7 +30,8 @@ export const AvatarLink = _ref => {
|
|
|
30
30
|
gradient
|
|
31
31
|
} = _ref;
|
|
32
32
|
const location = useLocation();
|
|
33
|
-
|
|
33
|
+
// Check if current path starts with the link path to handle nested routes
|
|
34
|
+
const isActive = link && location.pathname.startsWith(link);
|
|
34
35
|
return /*#__PURE__*/_jsxs(Link, {
|
|
35
36
|
to: link || "#",
|
|
36
37
|
"aria-label": name,
|