feat(frontend): show page when login fails

This commit is contained in:
Julian Tölle 2020-05-02 21:46:05 +02:00
parent cffddedc81
commit 32dcd84964
6 changed files with 35 additions and 5 deletions

View file

@ -0,0 +1,25 @@
import React from "react";
import { useQuery } from "../hooks/use-query";
export const LoginFailure: React.FC = () => {
const query = useQuery();
const source = query.get("source");
const reason = query.get("reason");
return (
<div
className="bg-orange-100 border-l-4 border-orange-500 text-orange-700 p-4 m-8"
role="alert"
>
<p className="font-bold">Login Failure</p>
<p>Something not ideal might be happening.</p>
<p className="m-5 bg-gray-100 p-5">
<ul className="text-xs text-gray-700 font-mono">
<li>Source: {source}</li>
<li>Reason: {reason}</li>
</ul>
</p>
</div>
);
};