Skip to content

Commit 56ca8f1

Browse files
authored
[easy] remove unused ref in ExpandableCallout.tsx (#6755)
Note that this component is not actually expandable and the ref got likely unused when that was removed
1 parent 2749eb4 commit 56ca8f1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/MDX/ExpandableCallout.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
import {useRef} from 'react';
65
import * as React from 'react';
76
import cn from 'classnames';
87
import {IconNote} from '../Icon/IconNote';
@@ -63,7 +62,6 @@ const variantMap = {
6362
};
6463

6564
function ExpandableCallout({children, type = 'note'}: ExpandableCalloutProps) {
66-
const contentRef = useRef<HTMLDivElement>(null);
6765
const variant = variantMap[type];
6866

6967
return (
@@ -80,9 +78,7 @@ function ExpandableCallout({children, type = 'note'}: ExpandableCalloutProps) {
8078
{variant.title}
8179
</h3>
8280
<div className="relative">
83-
<div ref={contentRef} className="py-2">
84-
{children}
85-
</div>
81+
<div className="py-2">{children}</div>
8682
</div>
8783
</div>
8884
);

0 commit comments

Comments
 (0)