remove fallback value and update api report
Signed-off-by: Hayden Spitzley <hspitzley@chanzuckerberg.com>
This commit is contained in:
@@ -1087,6 +1087,7 @@ export type SidebarSubmenuItemProps = {
|
||||
to?: string;
|
||||
icon?: IconComponent;
|
||||
dropdownItems?: SidebarSubmenuItemDropdownItem[];
|
||||
exact?: boolean;
|
||||
};
|
||||
|
||||
// @public
|
||||
|
||||
@@ -147,7 +147,7 @@ export const SidebarSubmenuItem = (props: SidebarSubmenuItemProps) => {
|
||||
};
|
||||
const toLocation = useResolvedPath(to ?? '');
|
||||
const currentLocation = useLocation();
|
||||
let isActive = isLocationMatch(currentLocation, toLocation, exact || false);
|
||||
let isActive = isLocationMatch(currentLocation, toLocation, exact);
|
||||
|
||||
const [showDropDown, setShowDropDown] = useState(false);
|
||||
const handleClickDropdown = () => {
|
||||
@@ -156,7 +156,7 @@ export const SidebarSubmenuItem = (props: SidebarSubmenuItemProps) => {
|
||||
if (dropdownItems !== undefined) {
|
||||
dropdownItems.some(item => {
|
||||
const resolvedPath = resolvePath(item.to);
|
||||
isActive = isLocationMatch(currentLocation, resolvedPath, exact || false);
|
||||
isActive = isLocationMatch(currentLocation, resolvedPath, exact);
|
||||
return isActive;
|
||||
});
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user