Skip to content

Commit

Permalink
remove BlockSyncErrorState component changes
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Feb 25, 2025
1 parent 225d6f6 commit 998a912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .changeset/curvy-days-reflect.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export const CondensedBlockSyncStatus = ({
error?: unknown;
}) => {
if (error) {
return <BlockSyncErrorState error={error} />;
return <BlockSyncErrorState />;
}
if (!latestKnownBlockHeight || !fullSyncHeight) {
return <AwaitingSyncState genesisSyncing={!!latestKnownBlockHeight && !fullSyncHeight} />;
return <AwaitingSyncState genesisSyncing={!fullSyncHeight} />;
}

const isSyncing = latestKnownBlockHeight - fullSyncHeight > 10;
Expand All @@ -41,9 +41,7 @@ export const CondensedBlockSyncStatus = ({
);
};

const BlockSyncErrorState = ({ error }: { error: unknown }) => {
console.warn('BlockSyncErrorState', error);

const BlockSyncErrorState = () => {
const reload = () => {
window.location.reload();
};
Expand All @@ -58,8 +56,7 @@ const BlockSyncErrorState = ({ error }: { error: unknown }) => {
<div className='absolute w-full px-2'>
<div className='mt-[-5.5px] flex gap-2'>
<span className='font-mono text-[10px] text-red-300'>
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.
</span>
<button
type='button'
Expand Down

0 comments on commit 998a912

Please sign in to comment.