Skip to content

Commit

Permalink
CMS-614: Hide reservations row when hasReservations is false (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan-oxd authored Jan 14, 2025
1 parent d787a3e commit fb9fb2e
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions frontend/src/router/pages/PreviewChanges.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,23 +165,26 @@ function PreviewChanges() {
</button>
</td>
</tr>

{feature.hasReservations && (
<tr>
<td>Reservation</td>
<td>{getPrevSeasonDates(feature, "Reservation")}</td>
<td>{getCurrentSeasonDates(feature, "Reservation")}</td>
<td>
<button
onClick={navigateToEdit}
className="btn btn-text-primary"
>
<FontAwesomeIcon
className="append-content me-2"
icon={faPen}
/>
<span>Edit</span>
</button>
</td>
</tr>
<button
onClick={navigateToEdit}
className="btn btn-text-primary"
>
<FontAwesomeIcon
className="append-content me-2"
icon={faPen}
/>
<span>Edit</span>
</button>
</td>
</tr>
)}
</tbody>
</table>
</div>
Expand Down

0 comments on commit fb9fb2e

Please sign in to comment.