diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-02 02:46:41 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-02 02:46:41 +0200 |
commit | f31fd75efcf6971048c0111860be5c25de925075 (patch) | |
tree | f63e867d64743ffa816e56536163045dfd87ee3e /src/components/ErrorCard.tsx | |
parent | 57d586fab73814a3778303c7a78c55c785e62af0 (diff) | |
download | Vencord-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.tsx | 21 |
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> + ); +} |