mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
fix: 修复 eslint 报错
This commit is contained in:
@@ -39,9 +39,9 @@ export function GlobalContextProvider(props) {
|
||||
|
||||
// 登录验证相关
|
||||
const enableClerk = process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
|
||||
const clerkUser = useUser()
|
||||
const { isLoaded, isSignedIn, user } = enableClerk
|
||||
? clerkUser
|
||||
? /* eslint-disable-next-line react-hooks/rules-of-hooks */
|
||||
useUser()
|
||||
: { isLoaded: true, isSignedIn: false, user: false }
|
||||
|
||||
// 是否全屏
|
||||
|
||||
Reference in New Issue
Block a user