aboutsummaryrefslogtreecommitdiff
path: root/src/components/ErrorCard.tsx
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-02 02:46:41 +0200
committerVendicated <vendicated@riseup.net>2022-10-02 02:46:41 +0200
commitf31fd75efcf6971048c0111860be5c25de925075 (patch)
treef63e867d64743ffa816e56536163045dfd87ee3e /src/components/ErrorCard.tsx
parent57d586fab73814a3778303c7a78c55c785e62af0 (diff)
downloadVencord-f31fd75efcf6971048c0111860be5c25de925075.tar.gz
Vencord-f31fd75efcf6971048c0111860be5c25de925075.tar.bz2
Vencord-f31fd75efcf6971048c0111860be5c25de925075.zip
UpdaterPage: Do not error if update check failed
Diffstat (limited to 'src/components/ErrorCard.tsx')
-rw-r--r--src/components/ErrorCard.tsx21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/ErrorCard.tsx b/src/components/ErrorCard.tsx
new file mode 100644
index 0000000..d0bf8c3
--- /dev/null
+++ b/src/components/ErrorCard.tsx
@@ -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>
+ );
+}