Skip to content

Commit f5eefaa

Browse files
committed
fix:useeffect cannot returm jsx
1 parent fde5456 commit f5eefaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

document/components/CustomSearchDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { useI18n } from 'fumadocs-ui/contexts/i18n';
1818
console.log({
1919
NEXT_PUBLIC_SEARCH_APPID: process.env.NEXT_PUBLIC_SEARCH_APPID,
2020
NEXT_PUBLIC_SEARCH_APPKEY: process.env.NEXT_PUBLIC_SEARCH_APPKEY
21-
})
21+
});
2222
if (!process.env.NEXT_PUBLIC_SEARCH_APPID || !process.env.NEXT_PUBLIC_SEARCH_APPKEY) {
2323
throw new Error('NEXT_PUBLIC_SEARCH_APPID and NEXT_PUBLIC_SEARCH_APPKEY are not set');
2424
}

document/components/docs/not-found.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ export default function NotFound() {
4141
redirect('/docs/introduction');
4242
}, [pathname]);
4343

44-
return;
44+
return <></>;
4545
}

0 commit comments

Comments
 (0)