fix: clean login page, avoid esbuild regex parse error
This commit is contained in:
@@ -6,7 +6,7 @@ import { Button } from "@/components/ui/button";
|
|||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
|
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";
|
||||||
import { Wrench, AlertCircle, ArrowLeft } from "lucide-react";
|
import { Wrench, AlertCircle } from "lucide-react";
|
||||||
|
|
||||||
export default function Login() {
|
export default function Login() {
|
||||||
const [, setLocation] = useLocation();
|
const [, setLocation] = useLocation();
|
||||||
@@ -91,20 +91,18 @@ export default function Login() {
|
|||||||
className="w-full"
|
className="w-full"
|
||||||
disabled={localLogin.isPending}
|
disabled={localLogin.isPending}
|
||||||
>
|
>
|
||||||
{localLogin.isPending ? "Signing in…" : "Sign in"}
|
{localLogin.isPending ? "Signing in..." : "Sign in"}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<Link href="/" className="inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary transition-colors">
|
<Link href="/" className="text-sm text-muted-foreground hover:text-primary transition-colors">
|
||||||
<ArrowLeft className="w-4 h-4" />
|
|
||||||
Back to Home
|
Back to Home
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user