aboutsummaryrefslogtreecommitdiff
path: root/src/components/ErrorBoundary.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/ErrorBoundary.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/ErrorBoundary.tsx')
-rw-r--r--src/components/ErrorBoundary.tsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/components/ErrorBoundary.tsx b/src/components/ErrorBoundary.tsx
index 5946cb1..21a3155 100644
--- a/src/components/ErrorBoundary.tsx
+++ b/src/components/ErrorBoundary.tsx
@@ -1,5 +1,6 @@
import Logger from "../utils/logger";
import { Card, React } from "../webpack/common";
+import { ErrorCard } from "./ErrorCard";
interface Props {
fallback?: React.ComponentType<React.PropsWithChildren<{ error: any; }>>;
@@ -49,12 +50,8 @@ export default class ErrorBoundary extends React.Component<React.PropsWithChildr
/>;
return (
- <Card style={{
+ <ErrorCard style={{
overflow: "hidden",
- padding: "2em",
- backgroundColor: color + "30",
- borderColor: color,
- color: "var(--text-normal)"
}}>
<h1>Oh no!</h1>
<p>
@@ -62,10 +59,11 @@ export default class ErrorBoundary extends React.Component<React.PropsWithChildr
and in your console.
</p>
<code>
- <pre>{this.state.error}
+ <pre>
+ {this.state.error}
</pre>
</code>
- </Card>
+ </ErrorCard>
);
}
}