diff --git a/application/src/components/services/ServiceRow.tsx b/application/src/components/services/ServiceRow.tsx index 1800849..313f79e 100644 --- a/application/src/components/services/ServiceRow.tsx +++ b/application/src/components/services/ServiceRow.tsx @@ -43,22 +43,22 @@ export const ServiceRow = ({ className={`border-b ${theme === 'dark' ? 'border-gray-800 hover:bg-gray-900/60' : 'border-gray-200 hover:bg-gray-50'} cursor-pointer`} onClick={handleRowClick} > - e.stopPropagation()}> + - e.stopPropagation()} className={`text-base py-4 ${theme === 'dark' ? 'text-gray-300' : 'text-gray-700'}`}> + {service.type} - e.stopPropagation()} className="py-4"> + - e.stopPropagation()} className="py-4"> + - e.stopPropagation()}> + - e.stopPropagation()} className="py-4"> + ); -}; +}; \ No newline at end of file diff --git a/application/src/components/services/hooks/useServiceActions.ts b/application/src/components/services/hooks/useServiceActions.ts index b7f3ee8..0dc8a5e 100644 --- a/application/src/components/services/hooks/useServiceActions.ts +++ b/application/src/components/services/hooks/useServiceActions.ts @@ -1,4 +1,3 @@ - import { useState } from "react"; import { useToast } from "@/hooks/use-toast"; import { useNavigate } from "react-router-dom"; @@ -24,6 +23,7 @@ export function useServiceActions(initialServices: Service[]) { }; const handleViewDetail = (service: Service) => { + console.log(`Navigating to service detail for service ID: ${service.id}`); navigate(`/service/${service.id}`); }; @@ -202,4 +202,4 @@ export function useServiceActions(initialServices: Service[]) { confirmDelete, handleMuteAlerts }; -} +} \ No newline at end of file