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}
onClick={onSvgClick}
>
<title id={labelledBy}>{ariaLabel}</title>
{ariaLabel && <title id={labelledBy}>{ariaLabel}</title>}
{nodes.map((node) => {
return (
<MiniMapNode
+1 -1
View File
@@ -16,5 +16,5 @@ export type MiniMapProps<NodeData = any> = Omit<HTMLAttributes<SVGSVGElement>, '
onNodeClick?: (event: MouseEvent, node: Node<NodeData>) => void;
pannable?: boolean;
zoomable?: boolean;
ariaLabel?: string;
ariaLabel?: string | null;
};