From e6fe246682f8ccebb1ad285481cf48d3e5a15979 Mon Sep 17 00:00:00 2001 From: "Laurie T. Malau" Date: Wed, 18 May 2022 07:20:27 +0000 Subject: [PATCH] replace login error with component --- components/dashboard/src/Login.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/components/dashboard/src/Login.tsx b/components/dashboard/src/Login.tsx index 7c6fa230fcbfe4..d14c5781752c80 100644 --- a/components/dashboard/src/Login.tsx +++ b/components/dashboard/src/Login.tsx @@ -23,6 +23,7 @@ import prebuild from "./images/welcome/prebuild.svg"; import exclamation from "./images/exclamation.svg"; import { getURLHash } from "./App"; import FeedbackComponent from "./feedback-form/FeedbackComponent"; +import ErrorMessage from "./components/ErrorMessage"; function Item(props: { icon: string; iconSize?: string; text: string }) { const iconSize = props.iconSize || 28; @@ -226,17 +227,7 @@ export function Login() { )) )} - - {errorMessage && ( -
-
- -
-
-

{errorMessage}

-
-
- )} + {errorMessage && } {errorMessage && }