From 0f62fb08bf14a41b8ec0933086a51666eef8cab6 Mon Sep 17 00:00:00 2001 From: harshit-jain52 Date: Mon, 18 Nov 2024 03:52:42 +0530 Subject: [PATCH] fix deployment issues --- src/pages/StudentDashboard.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/StudentDashboard.tsx b/src/pages/StudentDashboard.tsx index 92f8aec1..7bfcb264 100644 --- a/src/pages/StudentDashboard.tsx +++ b/src/pages/StudentDashboard.tsx @@ -225,8 +225,8 @@ function StudentDashboard() { cursor: 'pointer', transition: 'background-color 0.2s ease', }} - onMouseEnter={(e) => (e.target.style.backgroundColor = '#2b6cb0')} - onMouseLeave={(e) => (e.target.style.backgroundColor = '#3182ce')} + onMouseEnter={(e) => ((e.target as HTMLAnchorElement).style.backgroundColor = '#2b6cb0')} + onMouseLeave={(e) => ((e.target as HTMLAnchorElement).style.backgroundColor = '#3182ce')} onFocus={(e) => (e.target.style.boxShadow = '0 0 0 4px rgba(56, 189, 248, 0.5)')} onBlur={(e) => (e.target.style.boxShadow = 'none')} > @@ -264,8 +264,8 @@ function StudentDashboard() { cursor: 'pointer', transition: 'background-color 0.2s ease', }} - onMouseEnter={(e) => (e.target.style.backgroundColor = '#2b6cb0')} - onMouseLeave={(e) => (e.target.style.backgroundColor = '#3182ce')} + onMouseEnter={(e) => ((e.target as HTMLAnchorElement).style.backgroundColor = '#2b6cb0')} + onMouseLeave={(e) => ((e.target as HTMLAnchorElement).style.backgroundColor = '#3182ce')} onFocus={(e) => (e.target.style.boxShadow = '0 0 0 4px rgba(56, 189, 248, 0.5)')} onBlur={(e) => (e.target.style.boxShadow = 'none')} > @@ -302,8 +302,8 @@ function StudentDashboard() { cursor: 'pointer', transition: 'background-color 0.2s ease', }} - onMouseEnter={(e) => (e.target.style.backgroundColor = '#2b6cb0')} - onMouseLeave={(e) => (e.target.style.backgroundColor = '#3182ce')} + onMouseEnter={(e) => ((e.target as HTMLAnchorElement).style.backgroundColor = '#2b6cb0')} + onMouseLeave={(e) => ((e.target as HTMLAnchorElement).style.backgroundColor = '#3182ce')} onFocus={(e) => (e.target.style.boxShadow = '0 0 0 4px rgba(56, 189, 248, 0.5)')} onBlur={(e) => (e.target.style.boxShadow = 'none')} >