File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,25 @@ import { GLOBAL_CONSTANTS } from '@src/config-global.ts';
66import { OgMetaTags } from '@src/components/og-meta-tags.tsx' ;
77import { OwnershipView } from '@src/sections/ownership/index' ;
88import { useAuth } from '@src/hooks/use-auth.ts' ;
9- import { canViewSection } from "@src/layouts/can-view-section.tsx"
9+ import { useIsVerified } from '@src/hooks/protocol/use-is-verified.ts' ;
10+ import { Address } from 'viem' ;
11+ import { LoadingScreen } from '@src/components/loading-screen' ;
12+
1013// ----------------------------------------------------------------------
1114
1215export default function FileManagerPage ( ) {
13- const { session : sessionData } = useAuth ( ) ;
16+ const { session : sessionData , isAuthLoading } = useAuth ( ) ;
17+ const { isVerified, loading } = useIsVerified ( sessionData ?. address as Address ) ;
18+
19+ if ( ( loading && sessionData . authenticated ) || isAuthLoading ) return < LoadingScreen /> ;
1420
1521 return (
1622 < OgMetaTags
1723 title = "Watchit: Ownership (COMING SOON)"
1824 description = "Manage digital rights, track licensing, and unlock the power of decentralized ownership."
1925 url = { `${ GLOBAL_CONSTANTS . BASE_URL } /ownership/` }
2026 >
21- { canViewSection ( sessionData ) ? (
27+ { isVerified && sessionData . address ? (
2228 < >
2329 < Header >
2430 < HeaderContent title = "Ownership" />
You can’t perform that action at this time.
0 commit comments