Don't open for logged out users

This commit is contained in:
Eric Bailey 2024-09-11 09:57:37 -05:00
parent 2ee68e4f4d
commit f8edd11bc5
2 changed files with 14 additions and 6 deletions

View file

@ -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