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(
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
6161export 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 ) ;
You can’t perform that action at this time.
0 commit comments