Added shadcn dashboard block

This commit is contained in:
Kenan Alić
2025-10-14 20:31:08 +02:00
parent 673a80485f
commit a07020bea6
17 changed files with 1770 additions and 40 deletions

View File

@@ -1,2 +0,0 @@
const NotFound = () => <>NotFound</>;
export default NotFound;

View File

@@ -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
View 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;