Skip to content

Commit

Permalink
fix(contactForm): fixing up
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianflatner committed Nov 8, 2024
1 parent b152f61 commit 9712013
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions tavla/app/components/ContactForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { Checkbox, TextArea } from '@entur/form'
import { Checkbox, TextArea, TextField } from '@entur/form'
import { Label, Paragraph, SubParagraph } from '@entur/typography'
import { SubmitButton } from 'components/Form/SubmitButton'
import { postForm } from './actions'
Expand All @@ -15,7 +15,6 @@ import { Expandable } from './Expandable'
import { usePostHog } from 'posthog-js/react'
import { isEmptyOrSpaces } from 'app/(admin)/edit/utils'
import { validEmail } from 'utils/email'
import ClientOnlyTextField from './NoSSR/TextField'

function ContactForm() {
const posthog = usePostHog()
Expand Down Expand Up @@ -73,14 +72,6 @@ function ContactForm() {
med Tavla.
</Paragraph>

<ClientOnlyTextField
label="E-postadresse"
name="email"
id="email"
aria-label="E-postadresse"
{...getFormFeedbackForField('email', formState)}
/>

<div>
<Label
htmlFor="message"
Expand All @@ -107,7 +98,7 @@ function ContactForm() {
<Label htmlFor="email" className="font-bold">
E-post
</Label>
<ClientOnlyTextField
<TextField
label="E-postadresse"
name="email"
id="email"
Expand Down

0 comments on commit 9712013

Please sign in to comment.