Skip to content

Commit

Permalink
Update BlockDetails.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-13 authored Nov 11, 2024
1 parent 5054d0d commit c93b910
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/BlockDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
FaUser,
FaGasPump,
FaExchangeAlt,
FaArrowLeft
} from "react-icons/fa";
import "./Home.css"; // Ensure you are importing the correct CSS file
import logo from "../src/assets/ethereum_logo.png";
Expand Down Expand Up @@ -158,13 +159,20 @@ function BlockDetails() {
<button onClick={handleInputSearch}>
<FaSearch className="icon" />
</button>

</div>
{errorMessage && (
<p className={`error-message ${showError ? "" : "hide"}`}>
{errorMessage}
</p>
)}
)
}


</div>
<Link to="/" className="back-link">
<FaArrowLeft /> Back to home
</Link>
<h2>Block # {blockNumber}</h2>
<div className="dashboard-content">
{/* Block Information Group */}
Expand Down

0 comments on commit c93b910

Please sign in to comment.