Added URLs for login and registration

feature/auth-configure
AlexBarmen 1 year ago
parent 398638c79c
commit 9903f49750

@ -2,11 +2,11 @@
import styles from './app.module.scss'; import styles from './app.module.scss';
import NxWelcome from './nx-welcome'; import NxWelcome from './nx-welcome';
import {Home} from './home';
export function App() { export function App() {
return ( return (
<div> <div>
<NxWelcome title="frontend" /> <Home />
</div> </div>
); );
} }

@ -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,4 +1,5 @@
import { StrictMode } from 'react'; import { StrictMode } from 'react';
import {BrowserRouter} from 'react-router-dom';
import * as ReactDOM from 'react-dom/client'; import * as ReactDOM from 'react-dom/client';
import App from './app/app'; import App from './app/app';
@ -8,6 +9,8 @@ const root = ReactDOM.createRoot(
); );
root.render( root.render(
<StrictMode> <StrictMode>
<App /> <BrowserRouter>
<App />
</BrowserRouter>
</StrictMode> </StrictMode>
); );

2955
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -22,11 +22,15 @@
"class-transformer": "^0.5.1", "class-transformer": "^0.5.1",
"class-validator": "^0.14.0", "class-validator": "^0.14.0",
"graphql": "^16.7.1", "graphql": "^16.7.1",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-is": "18.2.0", "react-is": "18.2.0",
"react-router-dom": "^6.14.2",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"rxjs": "^7.8.0", "rxjs": "^7.8.0",
"sort-by": "^1.2.0",
"styled-components": "5.3.6", "styled-components": "5.3.6",
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save