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}
);