Skip to content

Commit

Permalink
DBC22-1104: Updated text showing in the tooltip for delay list page
Browse files Browse the repository at this point in the history
Updated text showing in the tooltip for delay list page
  • Loading branch information
bcgov-brwang authored and ray-oxd committed Oct 25, 2023
1 parent bf173ae commit 203c114
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/frontend/src/Components/events/EventsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,17 @@ export default function EventsTable({columns, data, sortingHandler, routeHandler
return (
<tr className={row.original.severity.toLowerCase()} onClick={() => routeHandler(row.original)} key={row.id}>
{row.getVisibleCells().map((cell) => {
return <td className={cell.column.id} key={cell.id} title={cell.row.original.description}>
return <td
className={cell.column.id}
key={cell.id}
title={
cell.column.id === "event_type"
? cell.row.original.severity.charAt(0) + cell.row.original.severity.slice(1).toLowerCase() + " delay"
: cell.column.id === "map"
? "View on map"
: ""
}
>
{flexRender(
cell.column.columnDef.cell,
cell.getContext(),
Expand Down

0 comments on commit 203c114

Please sign in to comment.