From 5e8497c7883a67be49b39d4f2351467722e2360c Mon Sep 17 00:00:00 2001 From: Hiren F <146440442+hirenf14@users.noreply.github.com> Date: Mon, 11 Mar 2024 11:42:25 +0530 Subject: [PATCH] fix: user views folder name corrected --- apps/platform/src/router/router.tsx | 4 +- .../src/views/{user => user}/info.view.tsx | 30 +- .../{user => user}/profile-security.view.tsx | 406 +++++++++--------- 3 files changed, 220 insertions(+), 220 deletions(-) rename apps/platform/src/views/{user => user}/info.view.tsx (96%) rename apps/platform/src/views/{user => user}/profile-security.view.tsx (96%) diff --git a/apps/platform/src/router/router.tsx b/apps/platform/src/router/router.tsx index d4d8af0..37dfdba 100644 --- a/apps/platform/src/router/router.tsx +++ b/apps/platform/src/router/router.tsx @@ -5,7 +5,7 @@ import { SignUpView } from '../views/auth/signUp.view' import { pages } from '@isomera/impl' import { PasswordResetView } from '../views/auth/passwordReset.view' import { PasswordResetConfirmView } from '../views/auth/passwordResetConfirm.view' -import { UserInfoView } from '../views/user /info.view' +import { UserInfoView } from '../views/user/info.view' import PublicRoute from './publicRoute' import { VerificationCodeView } from '../views/auth/verificationCode.view' @@ -13,7 +13,7 @@ import { Routes, Route } from 'react-router-dom' import PrivateRoute from './privateRoute' import { PublicLayout } from '../layouts/public.layout' import { PrivateLayout } from '../layouts/private.layout' -import { UserSecurityView } from '../views/user /profile-security.view' +import { UserSecurityView } from '../views/user/profile-security.view' import { Verify2FAView } from '../views/auth/auth2FA.view' import { Recovery2FAView } from '../views/auth/recovery.view' import { Disable2FAView } from '../views/auth/disable-2fa.view' diff --git a/apps/platform/src/views/user /info.view.tsx b/apps/platform/src/views/user/info.view.tsx similarity index 96% rename from apps/platform/src/views/user /info.view.tsx rename to apps/platform/src/views/user/info.view.tsx index b44ebe6..1d108c8 100644 --- a/apps/platform/src/views/user /info.view.tsx +++ b/apps/platform/src/views/user/info.view.tsx @@ -1,15 +1,15 @@ -import { Link } from 'react-router-dom' -import useSession from '../../hooks/useSession' - -export const UserInfoView = () => { - const { user } = useSession() - - return ( -
- Open your Authenticator app, for example, Google Authenticator, DUO, - Microsoft Security app, and scan the QR code: -
- - - > - )} - {!recoveryViewed && recoveryCodes && ( -
- Keep these codes in a safe place. You can use them to recover access
- to your account if you lose your 2FA device.
-
- These will be available for one minute only.
-
+ Open your Authenticator app, for example, Google Authenticator, DUO, + Microsoft Security app, and scan the QR code: +
+ + + > + )} + {!recoveryViewed && recoveryCodes && ( +
+ Keep these codes in a safe place. You can use them to recover access
+ to your account if you lose your 2FA device.
+
+ These will be available for one minute only.
+