From 45aceaba22c0568d0d3a19fca7999237bf37dc34 Mon Sep 17 00:00:00 2001 From: Max Korsunov Date: Tue, 22 Oct 2024 08:46:31 +0200 Subject: [PATCH] fix(ui): add refresh button to block sync status (#1861) --- .../block-sync-status/block-sync-status.tsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/ui/components/ui/block-sync-status/block-sync-status.tsx b/packages/ui/components/ui/block-sync-status/block-sync-status.tsx index a383b5ea95..b3790f2c0e 100644 --- a/packages/ui/components/ui/block-sync-status/block-sync-status.tsx +++ b/packages/ui/components/ui/block-sync-status/block-sync-status.tsx @@ -42,6 +42,10 @@ export const CondensedBlockSyncStatus = ({ }; const BlockSyncErrorState = ({ error }: { error: unknown }) => { + const reload = () => { + window.location.reload(); + }; + return ( { animate={{ opacity: 1, transition: { duration: 0.5, ease: 'easeOut' } }} > -
-
- Block sync error: {String(error)} +
+
+ + Block sync error: {String(error)} + +