feature(database-connection): Overlay error container on top of UserList

This commit is contained in:
2021-01-12 15:58:14 +01:00
parent bbdbd04cc8
commit 834276f651
2 changed files with 6 additions and 1 deletions

View File

@@ -6,4 +6,9 @@
.blurred {
@include blurred();
}
.ErrorContainer {
margin: 0;
z-index: 2;
position: absolute;
}
}

View File

@@ -38,7 +38,7 @@ const MainPage: FC<IMainPageProps> = (props: IMainPageProps) => {
<div className="MainPage">
<Header />
{
error && <ErrorContainer message={error.message} />
error && <ErrorContainer message={error.response} />
}
<ClipLoader color={spinnerColor} loading={loading} size={150} css={spinnerCss} />
<div className={loading ? "blurred" : ""}>