Skip to content

Commit

Permalink
style(login): forgot password as link (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
purusott authored Oct 10, 2024
1 parent 81e9fa4 commit f58a4c0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tavla/app/(admin)/components/Login/Email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
} from 'firebase/auth'
import { getClientApp } from 'utils/firebase'
import { login } from './actions'
import { Heading3 } from '@entur/typography'
import { Heading3, Link } from '@entur/typography'
import { TextField } from '@entur/form'
import { Button } from '@entur/button'
import Image from 'next/image'
import musk from 'assets/illustrations/Musk.png'
import {
Expand All @@ -18,7 +17,6 @@ import {
getFormFeedbackForField,
} from '../../utils'

import Link from 'next/link'
import { useFormState } from 'react-dom'
import { FirebaseError } from 'firebase/app'
import { FormError } from '../FormError'
Expand Down Expand Up @@ -82,14 +80,13 @@ function Email() {
/>
<FormError {...getFormFeedbackForField('user', state)} />
<FormError {...getFormFeedbackForField('general', state)} />
<SubmitButton variant="primary">Logg inn</SubmitButton>
<Button
variant="secondary"
as={Link}
<Link
className="w-28 text-nowrap"
href={getPathWithParams('reset')}
>
Glemt passord?
</Button>
</Link>
<SubmitButton variant="primary">Logg inn</SubmitButton>
</form>
</div>
)
Expand Down

0 comments on commit f58a4c0

Please sign in to comment.