Skip to content

Commit

Permalink
make patient results row clickable (#2664)
Browse files Browse the repository at this point in the history
make entire row clickable
  • Loading branch information
fzhao99 authored Oct 3, 2024
1 parent 1dc48be commit c6701ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ const PatientSearchResultsTable: React.FC<PatientSeacrchResultsTableProps> = ({
</thead>
<tbody>
{patients.map((patient) => (
<tr key={patient.id} className="tableRowWithHover">
<tr
key={patient.id}
className="tableRowWithHover tableRowWithHover_clickable"
onClick={() => setPatientForQueryResponse(patient)}
>
<td>{formatName(patient.name ?? [])}</td>
<td>{patient.birthDate ?? ""}</td>
<td>{formatContact(patient.telecom ?? [])}</td>
Expand Down
5 changes: 5 additions & 0 deletions containers/tefca-viewer/src/styles/custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -487,3 +487,8 @@ hr.custom-hr {
.tableRowWithHover:hover td {
background-color: $background-hover-color;
}

.tableRowWithHover_clickable,
.tableRowWithHover_clickable td {
cursor: pointer;
}

0 comments on commit c6701ba

Please sign in to comment.