blob: 1293709cf1b0a1e56fe73a5e7e8eb6b9210cd2e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import Sidebar from "@/components/layout/Sidebar";
// new
import Feed from "@/pages/Feed";
import Settings from "@/pages/Settings";
import { Switch, Router, Redirect, Route } from "wouter";
export default function r() {
return (
<Switch>
<Router base="/apps/nostrill">
<Sidebar />
<main>
<Route path="/" component={toGlobal} />
<Route path="/sets" component={Settings} />
<Route path="/feed/:taip" component={Feed} />
</main>
</Router>
<Route component={P404} />
</Switch>
);
}
function toGlobal() {
return <Redirect to="/feed/nostr" />;
}
export function P404() {
return <h1 className="x-center">404</h1>;
}
export function ErrorPage({ msg }: { msg: string }) {
return (
<div>
<P404 />
<h3>{msg}</h3>
</div>
);
}
|