Added: login component
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { useAuth } from '../config/authProvider';
|
|
||||||
|
|
||||||
export default function Test() {
|
import { useAuth } from '../../config/authProvider';
|
||||||
|
|
||||||
|
export default function Login() {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
let auth = useAuth();
|
let auth = useAuth();
|
||||||
let navigate = useNavigate();
|
let navigate = useNavigate();
|
||||||
@@ -25,6 +26,7 @@ export default function Test() {
|
|||||||
return (
|
return (
|
||||||
<p>
|
<p>
|
||||||
<h3>{t('app_title')}</h3>
|
<h3>{t('app_title')}</h3>
|
||||||
|
This is the proposed module for the login page
|
||||||
<div>{t('welcome_message')}</div>
|
<div>{t('welcome_message')}</div>
|
||||||
Welcome {auth.user}!{' '}
|
Welcome {auth.user}!{' '}
|
||||||
<button
|
<button
|
||||||
Reference in New Issue
Block a user