Add a rageshake button to the generic error view
This commit is contained in:
@@ -73,6 +73,7 @@ export function ErrorView({ error }: ErrorViewProps) {
|
|||||||
? error.translatedMessage
|
? error.translatedMessage
|
||||||
: error.message}
|
: error.message}
|
||||||
</p>
|
</p>
|
||||||
|
<RageshakeButton description={`***Error View***: ${error.message}`} />
|
||||||
{location.pathname === "/" ? (
|
{location.pathname === "/" ? (
|
||||||
<Button
|
<Button
|
||||||
size="lg"
|
size="lg"
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export function useSubmitRageshake(): {
|
|||||||
|
|
||||||
// The value of the context is the whole tuple returned from setState,
|
// The value of the context is the whole tuple returned from setState,
|
||||||
// so we just want the current state.
|
// so we just want the current state.
|
||||||
const [inspectorState] = useContext(InspectorContext);
|
const [inspectorState] = useContext(InspectorContext) ?? [];
|
||||||
|
|
||||||
const [{ sending, sent, error }, setState] = useState<{
|
const [{ sending, sent, error }, setState] = useState<{
|
||||||
sending: boolean;
|
sending: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user