File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11import { FunctionalComponent , h } from 'preact' ;
2- import { Router } from 'preact-router' ;
2+ import { Route , Router } from 'preact-router' ;
33
44import Home from '../routes/home' ;
55import AboutUs from '../routes/about-us' ;
@@ -23,13 +23,13 @@ const App: FunctionalComponent = () => {
2323 < div id = "preact_root" >
2424 < Header />
2525 < Router onChange = { removeTrailingSlash } >
26- < AboutUs path = "/about-us" />
27- < Canteen path = "/canteen" />
28- < Membership path = "/membership" />
29- < ScannerFeeds path = "/live-feed" />
30- < ShiftCalendar path = "/shift-calendar" />
31- < Stations path = "/stations" />
32- < Home exact path = "/" />
26+ < Route path = "/" component = { Home } />
27+ < Route path = "/about-us" component = { AboutUs } />
28+ < Route path = "/canteen" component = { Canteen } />
29+ < Route path = "/membership" component = { Membership } />
30+ < Route path = "/live-feed" component = { ScannerFeeds } />
31+ < Route path = "/shift-calendar" component = { ShiftCalendar } />
32+ < Route path = "/stations" component = { Stations } />
3333 < NotFoundPage default />
3434 </ Router >
3535 < Footer />
You can’t perform that action at this time.
0 commit comments