Merge branch 'feature/auth-configure' of https://github.com/IT-Lab-KubSU/platform into feature/auth-configure
commit
94f7deabd1
@ -0,0 +1,20 @@
|
|||||||
|
import {LoginPage, RegistrationPage} from "@platform/site-pages";
|
||||||
|
import {Link, Routes, Route} from 'react-router-dom'
|
||||||
|
|
||||||
|
export function Home() {
|
||||||
|
return(
|
||||||
|
<>
|
||||||
|
<ul>
|
||||||
|
<li><Link to="/login">Login</Link></li>
|
||||||
|
<li><Link to="/register">Register</Link></li>
|
||||||
|
</ul>
|
||||||
|
<Routes>
|
||||||
|
<Route path="/login" element={<LoginPage/>}></Route>
|
||||||
|
<Route path="/register" element={<RegistrationPage/>}></Route>
|
||||||
|
</Routes>
|
||||||
|
<h1>Hello</h1>
|
||||||
|
<LoginPage/>
|
||||||
|
<RegistrationPage/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
@ -1 +1,3 @@
|
|||||||
|
export * from './lib/registration-page/registration-page';
|
||||||
|
export * from './lib/login-page/login-page';
|
||||||
export * from './lib/site-pages';
|
export * from './lib/site-pages';
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
/*
|
||||||
|
* Replace this with your own classes
|
||||||
|
*
|
||||||
|
* e.g.
|
||||||
|
* .container {
|
||||||
|
* }
|
||||||
|
*/
|
@ -0,0 +1,10 @@
|
|||||||
|
import { render } from '@testing-library/react';
|
||||||
|
|
||||||
|
import LoginPage from './login-page';
|
||||||
|
|
||||||
|
describe('LoginPage', () => {
|
||||||
|
it('should render successfully', () => {
|
||||||
|
const { baseElement } = render(<LoginPage />);
|
||||||
|
expect(baseElement).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,14 @@
|
|||||||
|
import styles from './login-page.module.scss';
|
||||||
|
|
||||||
|
/* eslint-disable-next-line */
|
||||||
|
export interface LoginPageProps {}
|
||||||
|
|
||||||
|
export function LoginPage(props: LoginPageProps) {
|
||||||
|
return (
|
||||||
|
<div className={styles['container']}>
|
||||||
|
<h1>Welcome to LoginPage!</h1>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default LoginPage;
|
@ -0,0 +1,7 @@
|
|||||||
|
/*
|
||||||
|
* Replace this with your own classes
|
||||||
|
*
|
||||||
|
* e.g.
|
||||||
|
* .container {
|
||||||
|
* }
|
||||||
|
*/
|
@ -0,0 +1,10 @@
|
|||||||
|
import { render } from '@testing-library/react';
|
||||||
|
|
||||||
|
import RegistrationPage from './registration-page';
|
||||||
|
|
||||||
|
describe('RegistrationPage', () => {
|
||||||
|
it('should render successfully', () => {
|
||||||
|
const { baseElement } = render(<RegistrationPage />);
|
||||||
|
expect(baseElement).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,14 @@
|
|||||||
|
import styles from './registration-page.module.scss';
|
||||||
|
|
||||||
|
/* eslint-disable-next-line */
|
||||||
|
export interface RegistrationPageProps {}
|
||||||
|
|
||||||
|
export function RegistrationPage(props: RegistrationPageProps) {
|
||||||
|
return (
|
||||||
|
<div className={styles['container']}>
|
||||||
|
<h1>Welcome to RegistrationPage!</h1>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default RegistrationPage;
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue