Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/src/theme/BlogSidebar/Desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import React, {Fragment} from 'react';
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import {translate} from '@docusaurus/Translate';
Expand Down Expand Up @@ -34,7 +34,7 @@ export default function BlogSidebarDesktop({sidebar}: Props) {
);
cachedYear = postYear;
return (
<>
<Fragment key={item.permalink}>
{yearHeader}
<li key={item.permalink} className={styles.sidebarItem}>
<Link
Expand All @@ -45,7 +45,7 @@ export default function BlogSidebarDesktop({sidebar}: Props) {
{item.title}
</Link>
</li>
</>
</Fragment>
);
})}
</ul>
Expand Down
6 changes: 3 additions & 3 deletions website/src/theme/BlogSidebar/Mobile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import React, {Fragment} from 'react';
import Link from '@docusaurus/Link';
import {NavbarSecondaryMenuFiller} from '@docusaurus/theme-common';
import styles from './styles.module.css';
Expand All @@ -22,7 +22,7 @@ function BlogSidebarMobileSecondaryMenu({sidebar}: Props) {
);
cachedYear = postYear;
return (
<>
<Fragment key={item.permalink}>
{yearHeader}
<li key={item.permalink} className="menu__list-item">
<Link
Expand All @@ -33,7 +33,7 @@ function BlogSidebarMobileSecondaryMenu({sidebar}: Props) {
{item.title}
</Link>
</li>
</>
</Fragment>
);
})}
</ul>
Expand Down