UpdaterPage: Do not error if update check failed
This commit is contained in:
21
src/components/ErrorCard.tsx
Normal file
21
src/components/ErrorCard.tsx
Normal 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>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user