Skip to content

Commit eee8060

Browse files
Fix Sidebar type and add React/Next path aliases in tsconfig
Co-authored-by: rahul.chhabria <[email protected]>
1 parent 0649aff commit eee8060

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/sidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const activeLinkSelector = `.${styles.sidebar} .toc-item .active`;
2222

2323
export const sidebarToggleId = styles['navbar-menu-toggle'];
2424

25-
export async function Sidebar({path, versions}: SidebarProps) {
25+
export async function Sidebar({path, versions}: SidebarProps): Promise<JSX.Element> {
2626
const rootNode = await getDocsRootNode();
2727

2828
if (isDeveloperDocs) {

tsconfig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
"paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. Must match `alias` in `gatsby-node.js`. */
4141
"sentry-docs/*": [
4242
"src/*"
43+
],
44+
"react": [
45+
"./node_modules/react"
46+
],
47+
"next": [
48+
"./node_modules/next"
4349
]
4450
},
4551
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */

0 commit comments

Comments
 (0)