feat: back-to-home links on login and 404 pages

This commit is contained in:
root
2026-07-29 23:19:27 +02:00
parent 45f0b80055
commit 7bda8f95f3
2 changed files with 24 additions and 12 deletions
+9 -2
View File
@@ -1,5 +1,5 @@
import { useState } from "react";
import { useLocation, useSearch } from "wouter";
import { useLocation, useSearch, Link } from "wouter";
import { useLocalLogin } from "@workspace/api-client-react";
import { useQueryClient } from "@tanstack/react-query";
import { Button } from "@/components/ui/button";
@@ -95,7 +95,14 @@ export default function Login() {
</Button>
</form>
</CardContent>
</Card>
</Card>
<div className="text-center">
<Link href="/" className="text-sm text-muted-foreground hover:text-primary transition-colors">
&larr; Back to Home
</Link>
</div>
</div>
</div>
</div>
);