UpdaterPage: Do not error if update check failed

This commit is contained in:
Vendicated 2022-10-02 02:46:41 +02:00
parent 57d586fab7
commit f31fd75efc
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
5 changed files with 54 additions and 16 deletions

View file

@ -0,0 +1,21 @@
import { Card } from "../webpack/common";
interface Props {
style?: React.CSSProperties;
className?: string;
}
export function ErrorCard(props: React.PropsWithChildren<Props>) {
return (
<Card className={props.className} style={
{
padding: "2em",
backgroundColor: "#e7828430",
borderColor: "#e78284",
color: "var(--text-normal)",
...props.style
}
}>
{props.children}
</Card>
);
}