Skip to content

Commit

Permalink
Merge pull request #343 from cstenglein/wait-scrren
Browse files Browse the repository at this point in the history
improve wait screen design (a bit)
  • Loading branch information
cstenglein authored Jun 7, 2022
2 parents c6ea872 + 27f8cfb commit d6190ec
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/Setup/WaitScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import { FC } from "react";
import { useTranslation } from "react-i18next";
import SetupContainer from "../../container/SetupContainer/SetupContainer";
import { SetupStatus } from "../../models/setup.model";
import LoadingSpinner from "../Shared/LoadingSpinner/LoadingSpinner";

export interface InputData {
export type Props = {
status: SetupStatus;
message: string;
}
};

const WaitScreen: FC<InputData> = ({ status, message }) => {
const WaitScreen: FC<Props> = ({ status, message }) => {
const { t } = useTranslation();

// optimize for certain states like
Expand Down Expand Up @@ -39,14 +40,15 @@ const WaitScreen: FC<InputData> = ({ status, message }) => {
details = message;
}

let content = (
<div className="text-center">
<div className="text-center">{headline}</div>
<div className="text-center text-sm italic">{details}</div>
</div>
return (
<SetupContainer>
<section className="flex flex-col items-center justify-center">
<h2 className="my-2 font-bold">{headline}</h2>
<p className="my-2 text-sm italic">{details}</p>
<LoadingSpinner />
</section>
</SetupContainer>
);

return <SetupContainer>{content}</SetupContainer>;
};

export default WaitScreen;

0 comments on commit d6190ec

Please sign in to comment.