@@ -167,60 +167,61 @@ export const BlockCard: React.FC<BlockCardProps> = ({ block, isNew }) => (
167167 </ MessageCardBase >
168168) ;
169169
170- interface MiningCardProps {
171- mining : MiningOn ;
172- isNew ?: boolean ;
173- }
170+ // Temporarily commenting out MiningCard component
171+ // interface MiningCardProps {
172+ // mining: MiningOn;
173+ // isNew?: boolean;
174+ // }
174175
175- export const MiningCard : React . FC < MiningCardProps > = ( { mining, isNew } ) => (
176- < MessageCardBase
177- icon = "⛏️"
178- title = "Mining Activity"
179- network = { mining . Network }
180- receivedAt = { mining . ReceivedAt }
181- isNew = { isNew }
182- sentFromPeer = { mining . sentFromPeer }
183- peerID = { mining . PeerID }
184- >
185- < div className = "grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4" >
186- < div >
187- < span className = "text-xs sm:text-sm font-medium text-gray-500" > Block Hash</ span >
188- < p className = "font-mono text-xs sm:text-sm text-gray-900 truncate" title = { mining . Hash } >
189- { mining . Hash }
190- </ p >
191- </ div >
192- < div >
193- < span className = "text-xs sm:text-sm font-medium text-gray-500" > Height</ span >
194- < p className = "text-xs sm:text-sm text-gray-900" > { mining . Height ?. toLocaleString ( ) || 'N/A' } </ p >
195- </ div >
196- </ div >
176+ // export const MiningCard: React.FC<MiningCardProps> = ({ mining, isNew }) => (
177+ // <MessageCardBase
178+ // icon="⛏️"
179+ // title="Mining Activity"
180+ // network={mining.Network}
181+ // receivedAt={mining.ReceivedAt}
182+ // isNew={isNew}
183+ // sentFromPeer={mining.sentFromPeer}
184+ // peerID={mining.PeerID}
185+ // >
186+ // <div className="grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4">
187+ // <div>
188+ // <span className="text-xs sm:text-sm font-medium text-gray-500">Block Hash</span>
189+ // <p className="font-mono text-xs sm:text-sm text-gray-900 truncate" title={mining.Hash}>
190+ // {mining.Hash}
191+ // </p>
192+ // </div>
193+ // <div>
194+ // <span className="text-xs sm:text-sm font-medium text-gray-500">Height</span>
195+ // <p className="text-xs sm:text-sm text-gray-900">{mining.Height?.toLocaleString() || 'N/A'}</p>
196+ // </div>
197+ // </div>
197198
198- < div className = "grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4" >
199- < div >
200- < span className = "text-xs sm:text-sm font-medium text-gray-500" > Size</ span >
201- < p className = "text-xs sm:text-sm text-gray-900" > { mining . SizeInBytes ? ( mining . SizeInBytes / 1024 ) . toFixed ( 1 ) + ' KB' : 'N/A' } </ p >
202- </ div >
203- < div >
204- < span className = "text-xs sm:text-sm font-medium text-gray-500" > TX Count</ span >
205- < p className = "text-xs sm:text-sm text-gray-900" > { mining . TxCount ?. toLocaleString ( ) || 'N/A' } </ p >
206- </ div >
207- </ div >
199+ // <div className="grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4">
200+ // <div>
201+ // <span className="text-xs sm:text-sm font-medium text-gray-500">Size</span>
202+ // <p className="text-xs sm:text-sm text-gray-900">{mining.SizeInBytes ? (mining.SizeInBytes / 1024).toFixed(1) + ' KB' : 'N/A'}</p>
203+ // </div>
204+ // <div>
205+ // <span className="text-xs sm:text-sm font-medium text-gray-500">TX Count</span>
206+ // <p className="text-xs sm:text-sm text-gray-900">{mining.TxCount?.toLocaleString() || 'N/A'}</p>
207+ // </div>
208+ // </div>
208209
209- < div >
210- < span className = "text-sm font-medium text-gray-500" > Miner</ span >
211- < p className = "font-mono text-sm text-gray-900 truncate" title = { mining . Miner } >
212- { mining . Miner || 'Unknown' }
213- </ p >
214- </ div >
210+ // <div>
211+ // <span className="text-sm font-medium text-gray-500">Miner</span>
212+ // <p className="font-mono text-sm text-gray-900 truncate" title={mining.Miner}>
213+ // {mining.Miner || 'Unknown'}
214+ // </p>
215+ // </div>
215216
216- < div >
217- < span className = "text-sm font-medium text-gray-500" > Previous Hash</ span >
218- < p className = "font-mono text-sm text-gray-900 truncate" title = { mining . PreviousHash } >
219- { mining . PreviousHash }
220- </ p >
221- </ div >
222- </ MessageCardBase >
223- ) ;
217+ // <div>
218+ // <span className="text-sm font-medium text-gray-500">Previous Hash</span>
219+ // <p className="font-mono text-sm text-gray-900 truncate" title={mining.PreviousHash}>
220+ // {mining.PreviousHash}
221+ // </p>
222+ // </div>
223+ // </MessageCardBase>
224+ // );
224225
225226interface SubtreeCardProps {
226227 subtree : Subtree ;
0 commit comments