From 998a912a52e154a5582baef6daf32c84451ced54 Mon Sep 17 00:00:00 2001 From: turbocrime Date: Tue, 25 Feb 2025 11:28:11 -0800 Subject: [PATCH] remove `BlockSyncErrorState` component changes --- .changeset/curvy-days-reflect.md | 5 ----- .../ui/block-sync-status/block-sync-status.tsx | 11 ++++------- 2 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 .changeset/curvy-days-reflect.md diff --git a/.changeset/curvy-days-reflect.md b/.changeset/curvy-days-reflect.md deleted file mode 100644 index fefecb164..000000000 --- a/.changeset/curvy-days-reflect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@penumbra-zone/ui-deprecated': minor ---- - -add error prop to `BlockSyncErrorState`, and display error string diff --git a/packages/ui-deprecated/components/ui/block-sync-status/block-sync-status.tsx b/packages/ui-deprecated/components/ui/block-sync-status/block-sync-status.tsx index d7123c2f0..cd3d66386 100644 --- a/packages/ui-deprecated/components/ui/block-sync-status/block-sync-status.tsx +++ b/packages/ui-deprecated/components/ui/block-sync-status/block-sync-status.tsx @@ -16,10 +16,10 @@ export const CondensedBlockSyncStatus = ({ error?: unknown; }) => { if (error) { - return ; + return ; } if (!latestKnownBlockHeight || !fullSyncHeight) { - return ; + return ; } const isSyncing = latestKnownBlockHeight - fullSyncHeight > 10; @@ -41,9 +41,7 @@ export const CondensedBlockSyncStatus = ({ ); }; -const BlockSyncErrorState = ({ error }: { error: unknown }) => { - console.warn('BlockSyncErrorState', error); - +const BlockSyncErrorState = () => { const reload = () => { window.location.reload(); }; @@ -58,8 +56,7 @@ const BlockSyncErrorState = ({ error }: { error: unknown }) => {
- Block sync error -- {String(error instanceof Error ? error.message : error)} -- Ensure - your internet connection is stable. + Block sync error. Ensure your internet connection is stable.