Formatting

Signed-off-by: Chase Bennett <chase_bennett@carmax.com>
This commit is contained in:
Chase Bennett
2024-02-29 11:48:53 -08:00
committed by Vincenzo Scamporlino
parent f39257d454
commit 3f541b1163
@@ -131,7 +131,7 @@ export type SidebarSubmenuItemProps = {
icon?: IconComponent;
dropdownItems?: SidebarSubmenuItemDropdownItem[];
exact?: boolean;
initialShowDropDown?: boolean;
initialShowDropdown?: boolean;
};
/**
@@ -151,7 +151,7 @@ export const SidebarSubmenuItem = (props: SidebarSubmenuItemProps) => {
let isActive = isLocationMatch(currentLocation, toLocation, exact);
const [showDropDown, setShowDropDown] = useState(
props.initialShowDropDown ?? false,
props.initialShowDropdown ?? false,
);
const handleClickDropdown = () => {
setShowDropDown(!showDropDown);