From c4ce54b3c7ad1e54afee2de18aac0db172d5644f Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 31 Aug 2026 22:03:09 +0300 Subject: [PATCH] fix outage screen navigation --- src/components/Error.tsx | 50 ++++++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/src/components/Error.tsx b/src/components/Error.tsx index 9d5b7ebe3a..e4d60c3d35 100644 --- a/src/components/Error.tsx +++ b/src/components/Error.tsx @@ -32,7 +32,6 @@ export function Error({ const {t: l} = useLingui() const t = useTheme() const {gtMobile} = useBreakpoints() - const goBack = useGoBack(onGoBack) return ( } )} - {!hideBackButton && ( + {!hideBackButton && secondaryAction ? ( - )} + ) : !hideBackButton ? ( + + ) : null} ) } + +function GoBackButton({ + hasRetry, + isRetrying, + onGoBack, +}: { + hasRetry: boolean + isRetrying?: boolean + onGoBack?: () => unknown +}) { + const {t: l} = useLingui() + const goBack = useGoBack(onGoBack) + + return ( + + ) +}