File tree Expand file tree Collapse file tree 3 files changed +16
-16
lines changed
Expand file tree Collapse file tree 3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 2525 "dotenv" : " ^16.0.1" ,
2626 "preact" : " ^10.6.5" ,
2727 "preact-render-to-string" : " ^5.1.4" ,
28- "preact-router" : " ^4.0.1 " ,
28+ "preact-router" : " ^4.1.2 " ,
2929 "react-helmet" : " ^6.1.0"
3030 },
3131 "devDependencies" : {
Original file line number Diff line number Diff line change 11import { FunctionalComponent , h } from 'preact' ;
2- import { Route , Router } from 'preact-router' ;
2+ import { Router } from 'preact-router' ;
33
44import Home from '../routes/home' ;
55import AboutUs from '../routes/about-us' ;
@@ -17,13 +17,13 @@ const App: FunctionalComponent = () => {
1717 < div id = "preact_root" >
1818 < Header />
1919 < Router >
20- < Route path = "/" component = { Home } />
21- < Route path = "/about-us" component = { AboutUs } />
22- < Route path = "/canteen" component = { Canteen } />
23- < Route path = "/membership" component = { Membership } />
24- < Route path = "/live-feed" component = { ScannerFeeds } />
25- < Route path = "/shift-calendar" component = { ShiftCalendar } />
26- < Route path = "/stations" component = { Stations } />
20+ < Home path = "/" />
21+ < AboutUs path = "/about-us" />
22+ < Canteen path = "/canteen" />
23+ < Membership path = "/membership" />
24+ < ScannerFeeds path = "/live-feed" />
25+ < ShiftCalendar path = "/shift-calendar" />
26+ < Stations path = "/stations" />
2727 < NotFoundPage default />
2828 </ Router >
2929 < Footer />
You can’t perform that action at this time.
0 commit comments