Skip to content

Commit 4146cfb

Browse files
committed
Project Setup & Setup Route for Authentication
1 parent 6423060 commit 4146cfb

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
package-lock.json

frontend/src/App.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import NewEventPage from './pages/NewEvent';
1313
import RootLayout from './pages/Root';
1414
import { action as manipulateEventAction } from './components/EventForm';
1515
import NewsletterPage, { action as newsletterAction } from './pages/Newsletter';
16+
import AuthenticationPage from './pages/Authentication';
1617

1718
const router = createBrowserRouter([
1819
{
@@ -21,6 +22,10 @@ const router = createBrowserRouter([
2122
errorElement: <ErrorPage />,
2223
children: [
2324
{ index: true, element: <HomePage /> },
25+
{
26+
path: 'auth',
27+
element: <AuthenticationPage />,
28+
},
2429
{
2530
path: 'events',
2631
element: <EventsRootLayout />,

frontend/src/components/MainNavigation.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ function MainNavigation() {
3939
Newsletter
4040
</NavLink>
4141
</li>
42+
<li>
43+
<NavLink
44+
to="/auth"
45+
className={({ isActive }) =>
46+
isActive ? classes.active : undefined
47+
}
48+
end
49+
>
50+
Authentication
51+
</NavLink>
52+
</li>
4253
</ul>
4354
</nav>
4455
<NewsletterSignup />

0 commit comments

Comments
 (0)