chore: Enable recommended React eslint rules (#5600)
This commit is contained in:
@@ -5,6 +5,7 @@ import { MenuInternalLink } from "~/types";
|
||||
import { sharedDocumentPath } from "~/utils/routeHelpers";
|
||||
|
||||
type Props = {
|
||||
children?: React.ReactNode;
|
||||
documentId: string;
|
||||
shareId: string;
|
||||
sharedTree: NavigationNode | undefined;
|
||||
@@ -44,7 +45,7 @@ const PublicBreadcrumb: React.FC<Props> = ({
|
||||
shareId,
|
||||
sharedTree,
|
||||
children,
|
||||
}) => {
|
||||
}: Props) => {
|
||||
const items: MenuInternalLink[] = React.useMemo(
|
||||
() =>
|
||||
pathToDocument(sharedTree, documentId)
|
||||
@@ -57,7 +58,7 @@ const PublicBreadcrumb: React.FC<Props> = ({
|
||||
[sharedTree, shareId, documentId]
|
||||
);
|
||||
|
||||
return <Breadcrumb items={items} children={children} />;
|
||||
return <Breadcrumb items={items}>{children}</Breadcrumb>;
|
||||
};
|
||||
|
||||
export default PublicBreadcrumb;
|
||||
|
||||
Reference in New Issue
Block a user