File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- import React from 'react' ;
8
+ import React , { Fragment } from 'react' ;
9
9
import clsx from 'clsx' ;
10
10
import Link from '@docusaurus/Link' ;
11
11
import { translate } from '@docusaurus/Translate' ;
@@ -34,7 +34,7 @@ export default function BlogSidebarDesktop({sidebar}: Props) {
34
34
) ;
35
35
cachedYear = postYear ;
36
36
return (
37
- < >
37
+ < Fragment key = { item . permalink } >
38
38
{ yearHeader }
39
39
< li key = { item . permalink } className = { styles . sidebarItem } >
40
40
< Link
@@ -45,7 +45,7 @@ export default function BlogSidebarDesktop({sidebar}: Props) {
45
45
{ item . title }
46
46
</ Link >
47
47
</ li >
48
- </ >
48
+ </ Fragment >
49
49
) ;
50
50
} ) }
51
51
</ ul >
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
- import React from 'react' ;
8
+ import React , { Fragment } from 'react' ;
9
9
import Link from '@docusaurus/Link' ;
10
10
import { NavbarSecondaryMenuFiller } from '@docusaurus/theme-common' ;
11
11
import styles from './styles.module.css' ;
@@ -22,7 +22,7 @@ function BlogSidebarMobileSecondaryMenu({sidebar}: Props) {
22
22
) ;
23
23
cachedYear = postYear ;
24
24
return (
25
- < >
25
+ < Fragment key = { item . permalink } >
26
26
{ yearHeader }
27
27
< li key = { item . permalink } className = "menu__list-item" >
28
28
< Link
@@ -33,7 +33,7 @@ function BlogSidebarMobileSecondaryMenu({sidebar}: Props) {
33
33
{ item . title }
34
34
</ Link >
35
35
</ li >
36
- </ >
36
+ </ Fragment >
37
37
) ;
38
38
} ) }
39
39
</ ul >
You can’t perform that action at this time.
0 commit comments