Skip to content

Commit

Permalink
docs: recover DocSidebarItem
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Aug 16, 2023
1 parent 115a334 commit 91e9915
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions website/src/theme/DocSidebarItem/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import DocSidebarItem from '@theme-original/DocSidebarItem';
import CarbonAds from '@site/src/components/CarbonAds';

export default function DocSidebarItemWrapper(props) {
if (props.item.value === 'CarbonAds') {
return (
<>
<CarbonAds />
</>
);
}
return (
<>
<DocSidebarItem {...props} />
</>
);
}

0 comments on commit 91e9915

Please sign in to comment.