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.
+