| | |
| | | import { login } from '@/service/common' |
| | | import Input from '@/app/components/base/input' |
| | | import I18NContext from '@/context/i18n' |
| | | import { noop } from 'lodash-es' |
| | | |
| | | type MailAndPasswordAuthProps = { |
| | | isInvite: boolean |
| | |
| | | } |
| | | } |
| | | |
| | | return <form onSubmit={noop}> |
| | | return <form onSubmit={() => { }}> |
| | | <div className='mb-3'> |
| | | <label htmlFor="email" className="system-md-semibold my-2 text-text-secondary"> |
| | | <label htmlFor="email" className="my-2 system-md-semibold text-text-secondary"> |
| | | {t('login.email')} |
| | | </label> |
| | | <div className="mt-1"> |
| | |
| | | <span className='system-md-semibold text-text-secondary'>{t('login.password')}</span> |
| | | <Link |
| | | href={`/reset-password?${searchParams.toString()}`} |
| | | className={`system-xs-regular ${isEmailSetup ? 'text-components-button-secondary-accent-text' : 'pointer-events-none text-components-button-secondary-accent-text-disabled'}`} |
| | | className={`system-xs-regular ${isEmailSetup ? 'text-components-button-secondary-accent-text' : 'text-components-button-secondary-accent-text-disabled pointer-events-none'}`} |
| | | tabIndex={isEmailSetup ? 0 : -1} |
| | | aria-disabled={!isEmailSetup} |
| | | > |