manifold/web/pages/portfolio.tsx
Marshall Polaris acc9c84e2e
More absolute imports (#156)
* Configure functions module to allow absolute imports

* Convert common imports in functions to be absolute

* Convert common imports in web to be absolute

* Convert lib imports in web to be absolute

* Convert hooks imports in web to be absolute

* Convert components imports in web to be absolute
2022-05-09 09:04:36 -04:00

25 lines
644 B
TypeScript

import Router from 'next/router'
import { useEffect } from 'react'
import { BetsList } from 'web/components/bets-list'
import { Page } from 'web/components/page'
import { SEO } from 'web/components/SEO'
import { Title } from 'web/components/title'
import { useUser } from 'web/hooks/use-user'
export default function PortfolioPage() {
const user = useUser()
useEffect(() => {
if (user === null) Router.replace('/')
})
return (
<Page>
<SEO title="Portfolio" description="Portfolio" url="/portfolio" />
<Title className="mx-4 md:mx-0" text="Portfolio" />
{user && <BetsList user={user} />}
</Page>
)
}