Skip to content

Instantly share code, notes, and snippets.

@ernestofreyreg
Created January 16, 2020 14:52
Show Gist options
  • Save ernestofreyreg/76973234f795456e3d65ab2aca7127ce to your computer and use it in GitHub Desktop.
Save ernestofreyreg/76973234f795456e3d65ab2aca7127ce to your computer and use it in GitHub Desktop.
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