This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { Component } from 'react'
|
||||
import { models } from 'shared-stuff'
|
||||
|
||||
import dbConnect from '../../lib/dbConnect'
|
||||
@@ -7,22 +6,15 @@ import dbConnect from '../../lib/dbConnect'
|
||||
import Hero from './Hero'
|
||||
import Table from './Table'
|
||||
|
||||
export default class Home extends Component {
|
||||
constructor ({ scanResults }) {
|
||||
super()
|
||||
this.scanResults = scanResults
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<>
|
||||
<Hero />
|
||||
<Table
|
||||
scanResults={this.scanResults}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
export default function Home ({ scanResults }) {
|
||||
return (
|
||||
<>
|
||||
<Hero />
|
||||
<Table
|
||||
scanResults={scanResults}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export async function getServerSideProps ({ locale }) {
|
||||
|
||||
Reference in New Issue
Block a user