From 56f964a697cc7cb654b06b82ac8212b1d6dd8b8d Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Mon, 15 Apr 2024 16:57:55 -0400 Subject: [PATCH] [easy] remove unused ref in ExpandableCallout.tsx Note that this component is not actually expandable and the ref got likely unused when that was removed --- src/components/MDX/ExpandableCallout.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/MDX/ExpandableCallout.tsx b/src/components/MDX/ExpandableCallout.tsx index c4689802692..415d5d867a0 100644 --- a/src/components/MDX/ExpandableCallout.tsx +++ b/src/components/MDX/ExpandableCallout.tsx @@ -2,7 +2,6 @@ * Copyright (c) Facebook, Inc. and its affiliates. */ -import {useRef} from 'react'; import * as React from 'react'; import cn from 'classnames'; import {IconNote} from '../Icon/IconNote'; @@ -63,7 +62,6 @@ const variantMap = { }; function ExpandableCallout({children, type = 'note'}: ExpandableCalloutProps) { - const contentRef = useRef(null); const variant = variantMap[type]; return ( @@ -80,9 +78,7 @@ function ExpandableCallout({children, type = 'note'}: ExpandableCalloutProps) { {variant.title}
-
- {children} -
+
{children}
);