Skip to content

Commit

Permalink
Updated import
Browse files Browse the repository at this point in the history
  • Loading branch information
hkam0006 committed Aug 4, 2024
1 parent 9065cc3 commit f334a4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/components/keys/Keys.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,15 @@ const Keys = () => {
onClick={(e) => handleSelectRow(e, key.key_id)}
/>
</TableCell>
<TableCell>
<TableCell onClick={(e) => handleSelectRow(e, key.key_id)} sx={{cursor: "pointer"}}>
<Chip variant='filled' label={key.key_status} color={chipColour[key.key_status]} />
</TableCell>
<TableCell>{key.key_set}</TableCell>
<TableCell>{propertyAddress}</TableCell>
<TableCell>{"John Smith"}</TableCell>
<TableCell>{key.key_status === "On Loan" ? key.key_issued : "N/A"}</TableCell>
<TableCell>{key.key_status === "On Loan" ? key.key_due : "N/A"}</TableCell>
<TableCell>{key.key_status === "On Loan" ? "Jane Doe" : "N/A"}</TableCell>
<TableCell onClick={(e) => handleSelectRow(e, key.key_id)} sx={{cursor: "pointer"}}>{key.key_set}</TableCell>
<TableCell onClick={(e) => handleSelectRow(e, key.key_id)} sx={{cursor: "pointer"}}>{propertyAddress}</TableCell>
<TableCell onClick={(e) => handleSelectRow(e, key.key_id)} sx={{cursor: "pointer"}}>{"John Smith"}</TableCell>
<TableCell onClick={(e) => handleSelectRow(e, key.key_id)} sx={{cursor: "pointer"}}>{key.key_status === "On Loan" ? key.key_issued : "N/A"}</TableCell>
<TableCell onClick={(e) => handleSelectRow(e, key.key_id)} sx={{cursor: "pointer"}}>{key.key_status === "On Loan" ? key.key_due : "N/A"}</TableCell>
<TableCell onClick={(e) => handleSelectRow(e, key.key_id)} sx={{cursor: "pointer"}}>{key.key_status === "On Loan" ? "Jane Doe" : "N/A"}</TableCell>
<TableCell align='left'>
{
buttonTitle === "Check Out" ? (
Expand Down

0 comments on commit f334a4a

Please sign in to comment.