All files / src/features/auth/routes RegisterRoute.tsx

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32            3x   3x                                              
import { useTranslation } from 'react-i18next'
import { Link } from 'react-router-dom'
 
import { RegisterForm } from '../components/RegisterForm'
 
export function RegisterRoute() {
  const { t } = useTranslation()
 
  return (
    <>
      <div className="mb-6">
        <h1 className="font-display text-[28px] font-medium leading-tight tracking-tight text-balance text-ink">
          {t('auth.register.title')}
        </h1>
        <p className="mt-1.5 text-[13.5px] text-ink-muted">{t('auth.register.subtitle')}</p>
      </div>
 
      <RegisterForm />
 
      <p className="mt-6 text-center text-[13px] text-ink-muted">
        {t('auth.register.hasAccount')}{' '}
        <Link
          to="/login"
          className="rounded-sm font-semibold text-auth-action underline-offset-4 hover:underline focus-visible:ring-3 focus-visible:ring-emerald-600/40 focus-visible:outline-none"
        >
          {t('auth.register.loginLink')}
        </Link>
      </p>
    </>
  )
}