Skip to content

Commit

Permalink
fix: change go to home page link to just a button that closes the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
jongomez committed Oct 26, 2023
1 parent 58c8b31 commit bdffc96
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
Typography,
} from '@acid-info/lsd-react'
import styled from '@emotion/styled'
import Link from 'next/link'

type NewsletterSubscriptionFormProps = React.HTMLAttributes<HTMLDivElement> & {
handleFormSubmit: (e: React.FormEvent<HTMLFormElement>) => void
Expand Down Expand Up @@ -44,9 +43,9 @@ export default function NewsletterSubscriptionForm({
{successMessage}
</SubmitionInfoMessage>
</MessageContainer>
<Link href="/" onClick={onClose}>
<ToHomePageButton variant="filled">To home page</ToHomePageButton>
</Link>
<ToHomePageButton variant="filled" onClick={onClose}>
Go back
</ToHomePageButton>
</>
)}

Expand Down

0 comments on commit bdffc96

Please sign in to comment.