File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/components/codeHighlights Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function makeHighlightBlocks(
17
17
let highlightedLineElements : ReactElement [ ] = [ ] ;
18
18
let highlightElementGroupCounter = 0 ;
19
19
20
- return items . reduce ( ( arr : ChildrenItem [ ] , child , index ) => {
20
+ return items . reduce ( ( arr : ChildrenItem [ ] , child ) => {
21
21
if ( typeof child !== 'object' ) {
22
22
arr . push ( child ) ;
23
23
return arr ;
@@ -44,7 +44,7 @@ export function makeHighlightBlocks(
44
44
} else {
45
45
if ( highlightedLineElements . length > 0 ) {
46
46
arr . push (
47
- < HighlightBlock groupId = { highlightElementGroupCounter } key = { highlightElementGroupCounter } language = { language } >
47
+ < HighlightBlock key = { highlightElementGroupCounter } language = { language } >
48
48
{ ...highlightedLineElements }
49
49
</ HighlightBlock >
50
50
) ;
@@ -60,11 +60,9 @@ export function makeHighlightBlocks(
60
60
61
61
export function HighlightBlock ( {
62
62
children,
63
- groupId,
64
63
language,
65
64
} : {
66
65
children : React . ReactNode ;
67
- groupId : number ;
68
66
language : string | undefined ;
69
67
} ) {
70
68
const codeRef = useRef < HTMLDivElement > ( null ) ;
You can’t perform that action at this time.
0 commit comments