remove fallback value and update api report

Signed-off-by: Hayden Spitzley <hspitzley@chanzuckerberg.com>
This commit is contained in:
Hayden Spitzley
2023-05-30 09:01:58 -04:00
parent 8693a913de
commit 485c49192b
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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 (