fix: change go to home page link to just a button that closes the dialog

This commit is contained in:
jongomez 2023-10-26 18:27:39 +01:00 committed by Jon
parent 58c8b31023
commit bdffc96b4c
1 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,6 @@ import {
Typography, Typography,
} from '@acid-info/lsd-react' } from '@acid-info/lsd-react'
import styled from '@emotion/styled' import styled from '@emotion/styled'
import Link from 'next/link'
type NewsletterSubscriptionFormProps = React.HTMLAttributes<HTMLDivElement> & { type NewsletterSubscriptionFormProps = React.HTMLAttributes<HTMLDivElement> & {
handleFormSubmit: (e: React.FormEvent<HTMLFormElement>) => void handleFormSubmit: (e: React.FormEvent<HTMLFormElement>) => void
@ -44,9 +43,9 @@ export default function NewsletterSubscriptionForm({
{successMessage} {successMessage}
</SubmitionInfoMessage> </SubmitionInfoMessage>
</MessageContainer> </MessageContainer>
<Link href="/" onClick={onClose}> <ToHomePageButton variant="filled" onClick={onClose}>
<ToHomePageButton variant="filled">To home page</ToHomePageButton> Go back
</Link> </ToHomePageButton>
</> </>
)} )}