Skip to content

Commit

Permalink
Merge pull request #1003 from internxt/feat/-update-create-account-lo…
Browse files Browse the repository at this point in the history
…st-password-text

[PB-1524]: feat/allow the user to download the backup key when registering
  • Loading branch information
xabg2 authored Feb 12, 2024
2 parents 8c4ba31 + 8c23341 commit d2b9aa7
Show file tree
Hide file tree
Showing 17 changed files with 414 additions and 347 deletions.
41 changes: 0 additions & 41 deletions src/app/auth/components/Button/Button.scss

This file was deleted.

57 changes: 0 additions & 57 deletions src/app/auth/components/Button/Button.tsx

This file was deleted.

18 changes: 7 additions & 11 deletions src/app/auth/components/LogIn/LogIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import QueryString from 'qs';
import { initializeUserThunk, userActions } from 'app/store/slices/user';
import { RootState } from 'app/store';
import { useAppDispatch } from 'app/store/hooks';
import Button from '../Button/Button';
import { twoFactorRegexPattern } from 'app/core/services/validation.service';
import authService, { is2FANeeded, doLogin } from '../../services/auth.service';
import localStorageService from 'app/core/services/local-storage.service';
Expand All @@ -27,6 +26,7 @@ import { referralsThunks } from 'app/store/slices/referrals';
import { useTranslationContext } from 'app/i18n/provider/TranslationProvider';
import shareService from '../../../share/services/share.service';
import notificationsService, { ToastType } from '../../../notifications/services/notifications.service';
import Button from 'app/shared/components/Button/Button';
import { trackAccountUnblockEmailSent } from '../../../analytics/services/analytics.service';

export default function LogIn(): JSX.Element {
Expand Down Expand Up @@ -269,19 +269,15 @@ export default function LogIn(): JSX.Element {
<span className="font-base w-56 text-sm text-red">{loginError}</span>
</div>
)}

<Button
type="submit"
loading={isLoggingIn}
buttonDataCy="loginButton"
textDataCy="loginButtonText"
variant="primary"
disabled={isLoggingIn}
text={translate('auth.login.title')}
disabledText={
isValid ? (translate('auth.decrypting') as string) : (translate('auth.login.title') as string)
}
loading={isLoggingIn}
style="button-primary"
className="w-full"
/>
>
{isLoggingIn && isValid ? translate('auth.decrypting') : translate('auth.login.title')}
</Button>
</form>

<Link
Expand Down
Loading

0 comments on commit d2b9aa7

Please sign in to comment.