Fix FE
This commit is contained in:
parent
1241132095
commit
54a5c3ca9a
28 changed files with 826 additions and 422 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useState, useCallback, useEffect, useId } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Trans, useTranslation } from 'react-i18next';
|
||||
import { CloseIcon } from './icons/CloseIcon';
|
||||
import { GoogleIcon } from './icons/GoogleIcon';
|
||||
import { trackEvent } from '../../lib/analytics';
|
||||
|
|
@ -106,7 +106,7 @@ export default function AuthModal({
|
|||
|
||||
return (
|
||||
<div
|
||||
className="fixed inset-0 z-50 flex items-center justify-center"
|
||||
className="fixed inset-0 z-[10001] flex items-center justify-center"
|
||||
onMouseDown={(e) => {
|
||||
if (e.target === e.currentTarget) onClose();
|
||||
}}
|
||||
|
|
@ -283,6 +283,32 @@ export default function AuthModal({
|
|||
{t('auth.backToLogin')}
|
||||
</button>
|
||||
)}
|
||||
|
||||
{view === 'register' && (
|
||||
<p className="text-[11px] leading-relaxed text-center text-warm-400 dark:text-warm-500">
|
||||
<Trans
|
||||
i18nKey="auth.registerConsent"
|
||||
components={{
|
||||
terms: (
|
||||
<a
|
||||
href="/terms"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
className="underline hover:text-teal-600 dark:hover:text-teal-400"
|
||||
/>
|
||||
),
|
||||
privacy: (
|
||||
<a
|
||||
href="/privacy"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
className="underline hover:text-teal-600 dark:hover:text-teal-400"
|
||||
/>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</p>
|
||||
)}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue