feat(minimap): turn ariaLabel into an optional property

This commit is contained in:
Christopher Möller
2022-11-14 15:28:15 +01:00
parent 52816debba
commit a5963e62b6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ function MiniMap({
ref={svg} ref={svg}
onClick={onSvgClick} onClick={onSvgClick}
> >
<title id={labelledBy}>{ariaLabel}</title> {ariaLabel && <title id={labelledBy}>{ariaLabel}</title>}
{nodes.map((node) => { {nodes.map((node) => {
return ( return (
<MiniMapNode <MiniMapNode
+1 -1
View File
@@ -16,5 +16,5 @@ export type MiniMapProps<NodeData = any> = Omit<HTMLAttributes<SVGSVGElement>, '
onNodeClick?: (event: MouseEvent, node: Node<NodeData>) => void; onNodeClick?: (event: MouseEvent, node: Node<NodeData>) => void;
pannable?: boolean; pannable?: boolean;
zoomable?: boolean; zoomable?: boolean;
ariaLabel?: string; ariaLabel?: string | null;
}; };