Added shadcn dashboard block
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
const NotFound = () => <>NotFound</>;
|
||||
export default NotFound;
|
||||
@@ -1,17 +0,0 @@
|
||||
/* Wouter */
|
||||
import { Router, Switch, Route } from "wouter";
|
||||
import { useHashLocation } from "wouter/use-hash-location";
|
||||
|
||||
/* Routes */
|
||||
import NotFound from "@/routes/NotFound";
|
||||
|
||||
const RootRouter = () => (
|
||||
<Router hook={useHashLocation}>
|
||||
<Switch>
|
||||
{/* Fallback (eg. 'Not Found / 404') */}
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</Router>
|
||||
);
|
||||
|
||||
export default RootRouter;
|
||||
14
web/src/routes/Routes.tsx
Normal file
14
web/src/routes/Routes.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
/* Wouter routing library */
|
||||
import { Router, Switch, Route } from "wouter";
|
||||
import { useHashLocation } from "wouter/use-hash-location";
|
||||
|
||||
const Routes = () => (
|
||||
<Router hook={useHashLocation}>
|
||||
<Switch>
|
||||
<Route path="/" component={() => <>Home</>} />
|
||||
<Route component={() => <>NotFound</>} />
|
||||
</Switch>
|
||||
</Router>
|
||||
);
|
||||
|
||||
export default Routes;
|
||||
Reference in New Issue
Block a user