Skip to content

Commit

Permalink
feat: add sign up page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
SplitCode committed Oct 3, 2024
1 parent 3a7d31b commit 1a3585f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const LoginPage = () => {
<div className="text-center">
<span>Нет аккаунта?</span>
{' '}
<NavLink to="/register">Регистрация</NavLink>
<NavLink to="/signup">Регистрация</NavLink>
</div>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/pages/SignUpPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const SignUpPage = () => (
<div>
<h1>Registration Page</h1>
</div>
);

export default SignUpPage;
5 changes: 5 additions & 0 deletions frontend/src/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import NotFoundPage from '../pages/NotFoundPage';
import App from '../App';
import PrivateRoute from './private-route';
import AnonymousRoute from './anonymous-route';
import SignUpPage from '../pages/SignUpPage';

const router = createBrowserRouter([
{
Expand All @@ -19,6 +20,10 @@ const router = createBrowserRouter([
path: 'login',
element: <AnonymousRoute element={<LoginPage />} />,
},
{
path: 'signup',
element: <AnonymousRoute element={<SignUpPage />} />,
},
{
path: '*',
element: <NotFoundPage />,
Expand Down

0 comments on commit 1a3585f

Please sign in to comment.