Skip to content

Commit

Permalink
CMS-601: Display book camping button if hasReservations is true
Browse files Browse the repository at this point in the history
  • Loading branch information
ayumi-oxd committed Jan 8, 2025
1 parent dfe46db commit 1d282e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/gatsby/src/templates/park.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function ParkTemplate({ data }) {
const activeFacilities = combineFacilities(park.parkFacilities, data.allStrapiFacilityType.nodes, subAreas);
const activeCampings = combineCampingTypes(park.parkCampingTypes, data.allStrapiCampingType.nodes, subAreas);

const hasReservations = operations.hasFrontcountryReservations
const hasReservations = operations.hasReservations
const hasDayUsePass = operations.hasDayUsePass

const menuContent = data?.allStrapiMenu?.nodes || []
Expand Down Expand Up @@ -637,6 +637,7 @@ export const query = graphql`
}
parkOperation {
isActive
hasReservations
hasBackcountryReservations
hasBackcountryPermits
hasDayUsePass
Expand Down
3 changes: 2 additions & 1 deletion src/gatsby/src/templates/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function SiteTemplate({ data }) {
const activeFacilities = combineFacilities(site.parkFacilities, data.allStrapiFacilityType.nodes, subAreas);
const activeCampings = combineCampingTypes(site.parkCampingTypes, data.allStrapiCampingType.nodes, subAreas);

const hasReservations = operations.hasFrontcountryReservations
const hasReservations = operations.hasReservations
const hasDayUsePass = operations.hasDayUsePass

const menuContent = data?.allStrapiMenu?.nodes || []
Expand Down Expand Up @@ -571,6 +571,7 @@ export const query = graphql`
}
parkOperation {
isActive
hasReservations
hasBackcountryReservations
hasBackcountryPermits
hasDayUsePass
Expand Down

0 comments on commit 1d282e6

Please sign in to comment.