fix: change go to home page link to just a button that closes the dialog
This commit is contained in:
parent
58c8b31023
commit
bdffc96b4c
|
@ -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>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue