Skip to content

Commit

Permalink
deleted button +
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannidemaria committed Nov 17, 2024
1 parent ae39fb4 commit 0d6a3d9
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions frontend/src/components/AvailabilitiesTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ function AvailabilitiesTable({ authUser }) {
</Col>
</Row>

<Table striped bordered hover>
<Table striped bordered>
<thead>
<tr>
<th>Hours</th>
Expand Down Expand Up @@ -529,23 +529,20 @@ function AvailabilitiesTable({ authUser }) {
);

return (
<td key={j}>
<td
key={j}
onClick={() =>
!matchingAvailability &&
handleAddAvailability(
timeSlotStart,
timeSlotStart.clone().add(45, "minutes")
)
}
>
{matchingAvailability ? (
renderInterview(matchingAvailability.interview)
) : (
<>
<Button
variant="success"
onClick={() =>
handleAddAvailability(
timeSlotStart,
timeSlotStart.clone().add(45, "minutes")
)
}
>
<FaPlus />
</Button>
</>
<FaPlus />
)}
</td>
);
Expand Down

0 comments on commit 0d6a3d9

Please sign in to comment.