fix: fix initial in dash

This commit is contained in:
Daniel Soares
2021-12-18 00:54:32 -03:00
parent 47d03b6d73
commit d950ad1328
2 changed files with 13 additions and 4 deletions

View File

@@ -2,9 +2,14 @@ import { GetServerSideProps } from 'next'
import { Dash } from '../components/Dash'
import { fetchData } from '../services/fetchData'
import type { Data } from '../types/Data'
export default function DashPage() {
return <Dash />
type DashPageProps = {
initialData: Data
}
export default function DashPage({ initialData }: DashPageProps) {
return <Dash initialData={initialData} />
}
export const getServerSideProps: GetServerSideProps = async () => {