Skip to content

Commit d2207f0

Browse files
committed
Bump preact-router
1 parent 2badd20 commit d2207f0

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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": {

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 { Route, Router } from 'preact-router';
2+
import { Router } from 'preact-router';
33

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

0 commit comments

Comments
 (0)