Skip to content

Commit b702a2d

Browse files
committed
Revert router changes
1 parent a82982f commit b702a2d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/app.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FunctionalComponent, h } from 'preact';
2-
import { Router } from 'preact-router';
2+
import { Route, Router } from 'preact-router';
33

44
import Home from '../routes/home';
55
import 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 />

0 commit comments

Comments
 (0)