Skip to content

Commit

Permalink
Merge pull request #1406 from harshitg927/issue-1399
Browse files Browse the repository at this point in the history
Enhance Navigation and Dashboard: Add Home Link and Interactive Tiles
  • Loading branch information
mozzy11 authored Jan 20, 2025
2 parents bb5795b + fa0ab72 commit f4f429d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/components/home/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ const HomeDashBoard: React.FC<DashBoardProps> = () => {
};

const handleMaximizeClick = (tile) => {
console.log("Icon clicked!");
if (
testSections?.length > 0 ||
hasRole(userSessionDetails, "Global Administrator")
Expand Down Expand Up @@ -504,7 +503,11 @@ const HomeDashBoard: React.FC<DashBoardProps> = () => {
{selectedTile == null ? (
<div className="home-dashboard-container">
{tileList.map((tile, index) => (
<ClickableTile key={index} className="dashboard-tile">
<ClickableTile
key={index}
className="dashboard-tile"
onClick={() => handleMaximizeClick(tile)}
>
<h3 className="tile-title">{tile.title}</h3>
<p className="tile-subtitle">{tile.subTitle}</p>
<p className="tile-value">{tile.value}</p>
Expand Down

0 comments on commit f4f429d

Please sign in to comment.