Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit ed50b16

Browse files
committed
remove unused prop
1 parent 265ad59 commit ed50b16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/MermaidZoom.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface MermaidZoomProps extends React.ComponentPropsWithoutRef<'svg'> {}
1616
const MermaidZoom: React.FC<MermaidZoomProps> = (props) => (
1717
<div className="relative flex items-center justify-center">
1818
<TransformWrapper centerOnInit initialScale={0.9} minScale={0.75}>
19-
{({ zoomIn, zoomOut, resetTransform, instance }) => (
19+
{({ zoomIn, zoomOut, resetTransform }) => (
2020
<React.Fragment>
2121
<div className="absolute right-2 top-2 z-10 space-x-1">
2222
<Button variant="outline" size="icon" onClick={() => zoomIn()}>
@@ -35,7 +35,7 @@ const MermaidZoom: React.FC<MermaidZoomProps> = (props) => (
3535
</div>
3636
<TransformComponent
3737
wrapperClass="bg-white rounded-lg !w-full cursor-move"
38-
contentClass={'!w-full !h-full'}
38+
contentClass="!w-full !h-full"
3939
>
4040
<svg
4141
{...props}

0 commit comments

Comments
 (0)