Created
January 16, 2020 14:52
-
-
Save ernestofreyreg/76973234f795456e3d65ab2aca7127ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
import { NextPage } from 'next' | |
import { useAuth0 } from '../lib/auth0-spa' | |
import NavigationBar from '../components/NavigationBar' | |
import Link from 'next/link' | |
interface Props {} | |
const Page: NextPage<Props> = () => { | |
const { user } = useAuth0() | |
return ( | |
<div> | |
<h1>Initial Page</h1> | |
<div> | |
{user && ( | |
<div> | |
{user.nickname}{' '} | |
<Link href='/dashboard'> | |
<a>Dashboard</a> | |
</Link> | |
</div> | |
)} | |
<NavigationBar /> | |
</div> | |
</div> | |
) | |
} | |
export default Page |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment