From 31672fcbef5a400d822d8dcdf75b5120e698c13c Mon Sep 17 00:00:00 2001 From: Randi Mays <19175324+randimays@users.noreply.github.com> Date: Thu, 23 Jan 2025 17:10:19 -0600 Subject: [PATCH] VACMS-11597 remove CC pagination flipper --- .../components/PaginationWrapper.jsx | 12 ------------ .../facility-locator/utils/featureFlagSelectors.js | 5 ----- .../utilities/feature-toggles/featureFlagNames.json | 1 - 3 files changed, 18 deletions(-) diff --git a/src/applications/facility-locator/components/PaginationWrapper.jsx b/src/applications/facility-locator/components/PaginationWrapper.jsx index 361e9c94c439..1e65cea97d9c 100644 --- a/src/applications/facility-locator/components/PaginationWrapper.jsx +++ b/src/applications/facility-locator/components/PaginationWrapper.jsx @@ -2,7 +2,6 @@ import { VaPagination } from '@department-of-veterans-affairs/component-library/ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { LocationType } from '../constants'; -import { facilityLocatorRestoreCommunityCarePagination } from '../utils/featureFlagSelectors'; export class PaginationWrapper extends Component { shouldComponentUpdate = nextProps => @@ -41,17 +40,6 @@ export class PaginationWrapper extends Component { const mapStateToProps = state => { let shouldHidePagination = false; - if ( - [ - LocationType.CC_PROVIDER, - LocationType.URGENT_CARE_PHARMACIES, - LocationType.EMERGENCY_CARE, - ].includes(state.searchQuery.facilityType) && - !facilityLocatorRestoreCommunityCarePagination(state) - ) { - shouldHidePagination = true; - } - // pagination not yet supported for PPMS urgent care if ( state.searchQuery.facilityType === LocationType.URGENT_CARE && diff --git a/src/applications/facility-locator/utils/featureFlagSelectors.js b/src/applications/facility-locator/utils/featureFlagSelectors.js index 8f4c217d2a76..ef396e0a9dab 100644 --- a/src/applications/facility-locator/utils/featureFlagSelectors.js +++ b/src/applications/facility-locator/utils/featureFlagSelectors.js @@ -19,8 +19,3 @@ export const facilityLocatorShowOperationalHoursSpecialInstructions = state => export const facilityLocatorLatLongOnly = state => toggleValues(state)[FEATURE_FLAG_NAMES.facilityLocatorLatLongOnly]; - -export const facilityLocatorRestoreCommunityCarePagination = state => - toggleValues(state)[ - FEATURE_FLAG_NAMES.facilityLocatorRestoreCommunityCarePagination - ]; diff --git a/src/platform/utilities/feature-toggles/featureFlagNames.json b/src/platform/utilities/feature-toggles/featureFlagNames.json index 7ac5ee0305f2..2c829552c077 100644 --- a/src/platform/utilities/feature-toggles/featureFlagNames.json +++ b/src/platform/utilities/feature-toggles/featureFlagNames.json @@ -74,7 +74,6 @@ "facilityLocatorLatLongOnly": "facility_locator_lat_long_only", "facilityLocatorPredictiveLocationSearch": "facility_locator_predictive_location_search", "facilityLocatorRailsEngine": "facility_locator_rails_engine", - "facilityLocatorRestoreCommunityCarePagination": "facility_locator_restore_community_care_pagination", "facilityLocatorShowCommunityCares": "facility_locator_show_community_cares", "facilityLocatorShowHealthConnectNumber": "facility_locator_show_health_connect_number", "facilityLocatorShowOperationalHoursSpecialInstructions": "facility_locator_show_operational_hours_special_instructions",