Skip to content

Commit 6be34f4

Browse files
committed
remove unused variables
1 parent 648ce2a commit 6be34f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/codeHighlights/codeHighlights.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function makeHighlightBlocks(
1717
let highlightedLineElements: ReactElement[] = [];
1818
let highlightElementGroupCounter = 0;
1919

20-
return items.reduce((arr: ChildrenItem[], child, index) => {
20+
return items.reduce((arr: ChildrenItem[], child) => {
2121
if (typeof child !== 'object') {
2222
arr.push(child);
2323
return arr;
@@ -44,7 +44,7 @@ export function makeHighlightBlocks(
4444
} else {
4545
if (highlightedLineElements.length > 0) {
4646
arr.push(
47-
<HighlightBlock groupId={highlightElementGroupCounter} key={highlightElementGroupCounter} language={language}>
47+
<HighlightBlock key={highlightElementGroupCounter} language={language}>
4848
{...highlightedLineElements}
4949
</HighlightBlock>
5050
);
@@ -60,11 +60,9 @@ export function makeHighlightBlocks(
6060

6161
export function HighlightBlock({
6262
children,
63-
groupId,
6463
language,
6564
}: {
6665
children: React.ReactNode;
67-
groupId: number;
6866
language: string | undefined;
6967
}) {
7068
const codeRef = useRef<HTMLDivElement>(null);

0 commit comments

Comments
 (0)