diff --git a/src/FullScreenView.tsx b/src/FullScreenView.tsx
index 95a8a7ae..e3a5403c 100644
--- a/src/FullScreenView.tsx
+++ b/src/FullScreenView.tsx
@@ -21,11 +21,10 @@ import { Trans, useTranslation } from "react-i18next";
import { Header, HeaderLogo, LeftNav, RightNav } from "./Header";
import { LinkButton, Button } from "./button";
-import { useSubmitRageshake } from "./settings/submit-rageshake";
-import { ErrorMessage } from "./input/Input";
import styles from "./FullScreenView.module.css";
-import { translatedError, TranslatedError } from "./TranslatedError";
+import { TranslatedError } from "./TranslatedError";
import { Config } from "./config/Config";
+import { RageshakeButton } from "./settings/RageshakeButton";
interface FullScreenViewProps {
className?: string;
@@ -97,37 +96,11 @@ export function ErrorView({ error }: ErrorViewProps) {
export function CrashView() {
const { t } = useTranslation();
- const { submitRageshake, sending, sent, error } = useSubmitRageshake();
-
- const sendDebugLogs = useCallback(() => {
- submitRageshake({
- description: "**Soft Crash**",
- sendLogs: true,
- });
- }, [submitRageshake]);
const onReload = useCallback(() => {
window.location.href = "/";
}, []);
- let logsComponent: JSX.Element | null = null;
- if (sent) {
- logsComponent =
{t("Thanks! We'll get right on it.")}
;
- } else if (sending) {
- logsComponent = {t("Sending…")}
;
- } else if (Config.get().rageshake?.submit_url) {
- logsComponent = (
-
- );
- }
-
return (
@@ -139,10 +112,7 @@ export function CrashView() {
)}
- {logsComponent}
- {error && (
-
- )}
+