mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 20:01:57 +00:00
Cancel double path check and remove unused props (#5925)
This commit is contained in:
@@ -18,7 +18,6 @@ interface SidebarLinkProps {
|
||||
wip: boolean | undefined;
|
||||
icon?: React.ReactNode;
|
||||
isExpanded?: boolean;
|
||||
isBreadcrumb?: boolean;
|
||||
hideArrow?: boolean;
|
||||
isPending: boolean;
|
||||
}
|
||||
@@ -30,7 +29,6 @@ export function SidebarLink({
|
||||
wip,
|
||||
level,
|
||||
isExpanded,
|
||||
isBreadcrumb,
|
||||
hideArrow,
|
||||
isPending,
|
||||
}: SidebarLinkProps) {
|
||||
|
||||
@@ -87,7 +87,7 @@ export function SidebarRouteTree({
|
||||
) => {
|
||||
const selected = slug === path;
|
||||
let listItem = null;
|
||||
if (!path || !path || heading) {
|
||||
if (!path || heading) {
|
||||
// if current route item has no path and children treat it as an API sidebar heading
|
||||
listItem = (
|
||||
<SidebarRouteTree
|
||||
@@ -114,7 +114,6 @@ export function SidebarRouteTree({
|
||||
title={title}
|
||||
wip={wip}
|
||||
isExpanded={isExpanded}
|
||||
isBreadcrumb={isBreadcrumb}
|
||||
hideArrow={isForceExpanded}
|
||||
/>
|
||||
<CollapseWrapper duration={250} isExpanded={isExpanded}>
|
||||
|
||||
Reference in New Issue
Block a user