mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix the opengraph image to always return on the landing page
This commit is contained in:
parent
fa659bdf66
commit
a09c130cd2
1 changed files with 11 additions and 2 deletions
|
|
@ -43,13 +43,22 @@ const subHeadingStyles = {
|
|||
|
||||
export default function LandingPage(): JSX.Element {
|
||||
const router = useRouter()
|
||||
const { viewerData, viewerDataError, isLoading } = useGetViewerQuery()
|
||||
const { viewerData, isLoading } = useGetViewerQuery()
|
||||
|
||||
if (!isLoading && router.isReady && viewerData?.me) {
|
||||
router.push('/home')
|
||||
return <></>
|
||||
} else if (isLoading) {
|
||||
return <LoadingView bgColor="#FEFCF5" />
|
||||
return (
|
||||
<>
|
||||
<PageMetaData
|
||||
title="Omnivore"
|
||||
path="/"
|
||||
ogImage="/static/images/og-homepage.png"
|
||||
/>
|
||||
<LoadingView bgColor="#FEFCF5" />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue