File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
- node_modules
1
+ node_modules
2
+ package-lock.json
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import NewEventPage from './pages/NewEvent';
13
13
import RootLayout from './pages/Root' ;
14
14
import { action as manipulateEventAction } from './components/EventForm' ;
15
15
import NewsletterPage , { action as newsletterAction } from './pages/Newsletter' ;
16
+ import AuthenticationPage from './pages/Authentication' ;
16
17
17
18
const router = createBrowserRouter ( [
18
19
{
@@ -21,6 +22,10 @@ const router = createBrowserRouter([
21
22
errorElement : < ErrorPage /> ,
22
23
children : [
23
24
{ index : true , element : < HomePage /> } ,
25
+ {
26
+ path : 'auth' ,
27
+ element : < AuthenticationPage /> ,
28
+ } ,
24
29
{
25
30
path : 'events' ,
26
31
element : < EventsRootLayout /> ,
Original file line number Diff line number Diff line change @@ -39,6 +39,17 @@ function MainNavigation() {
39
39
Newsletter
40
40
</ NavLink >
41
41
</ 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 >
42
53
</ ul >
43
54
</ nav >
44
55
< NewsletterSignup />
You can’t perform that action at this time.
0 commit comments