Fix missing children
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import type { NextPage } from 'next'
|
||||
import Link from 'next/link'
|
||||
import { FC } from 'react'
|
||||
import { FC, ReactNode } from 'react'
|
||||
|
||||
interface CtaLinkProps {
|
||||
page: string
|
||||
children?: ReactNode
|
||||
}
|
||||
const CtaLink: FC<CtaLinkProps> = (props) => (
|
||||
<Link href={props.page}>
|
||||
@@ -14,7 +15,7 @@ const CtaLink: FC<CtaLinkProps> = (props) => (
|
||||
const Home: NextPage = () => {
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col items-center justify-center bg-pink-400">
|
||||
<main className="space-y-8 flex flex-col items-center">
|
||||
<main className="flex flex-col items-center space-y-8">
|
||||
<h1 className="text-6xl">Wishes</h1>
|
||||
<div className="space-x-3">
|
||||
<CtaLink page="/sign-up">Create account</CtaLink>
|
||||
|
Reference in New Issue
Block a user