Fix missing children
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-10-27 21:46:17 +02:00
parent e21c3397c2
commit 13e5d967ce
5 changed files with 30 additions and 18 deletions

View File

@@ -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>