Don't open for logged out users
This commit is contained in:
parent
2ee68e4f4d
commit
f8edd11bc5
2 changed files with 14 additions and 6 deletions
|
|
@ -87,6 +87,11 @@ function Frame({children}: {children: React.ReactNode}) {
|
|||
}
|
||||
|
||||
export function TenMillion() {
|
||||
const {hasSession} = useSession()
|
||||
return hasSession ? <TenMillionInner /> : null
|
||||
}
|
||||
|
||||
export function TenMillionInner() {
|
||||
const t = useTheme()
|
||||
const lightTheme = useTheme('light')
|
||||
const {_, i18n} = useLingui()
|
||||
|
|
@ -96,7 +101,7 @@ export function TenMillion() {
|
|||
const {currentAccount} = useSession()
|
||||
const {isLoading: isProfileLoading, data: profile} = useProfileQuery({
|
||||
did: currentAccount!.did,
|
||||
}) // TODO PWI
|
||||
})
|
||||
const moderationOpts = useModerationOpts()
|
||||
const moderation = React.useMemo(() => {
|
||||
return profile && moderationOpts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue