Skip to content

Commit 2e68a6f

Browse files
committed
fix:useeffect cannot returm jsx
1 parent 51268f1 commit 2e68a6f

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

document/components/CustomSearchDialog.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ import {
1515
} from 'fumadocs-ui/components/dialog/search';
1616
import { useI18n } from 'fumadocs-ui/contexts/i18n';
1717

18-
console.log({
19-
NEXT_PUBLIC_SEARCH_APPID: process.env.NEXT_PUBLIC_SEARCH_APPID,
20-
NEXT_PUBLIC_SEARCH_APPKEY: process.env.NEXT_PUBLIC_SEARCH_APPKEY
21-
})
2218
if (!process.env.NEXT_PUBLIC_SEARCH_APPID || !process.env.NEXT_PUBLIC_SEARCH_APPKEY) {
2319
throw new Error('NEXT_PUBLIC_SEARCH_APPID and NEXT_PUBLIC_SEARCH_APPKEY are not set');
2420
}

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)