diff --git a/core/featureFlags/constants.ts b/core/featureFlags/constants.ts index 1f6cd4270d5521bfbdbef31f85289191c4dcff90..8aa3ee208c5f78b5ab8928be7aeb4cb5835d6f96 100644 --- a/core/featureFlags/constants.ts +++ b/core/featureFlags/constants.ts @@ -2,6 +2,7 @@ export enum FeatureFlagKey { DONATIONS = 'DONATIONS', // multivariate ('on', 'off', 'maintenance') -> FeatureFlagWithMaintenance GOODNEWS = 'GOODNEWS', // multivariate ('on', 'off', 'maintenance') -> FeatureFlagWithMaintenance VOLUNTEERING = 'VOLUNTEERING', // multivariate ('on', 'off', 'maintenance') -> FeatureFlagWithMaintenance + EVENTS = 'EVENTS', // multivariate ('on', 'off', 'maintenance') -> FeatureFlagWithMaintenance CHAT = 'CHAT', // multivariate ('on', 'off', 'maintenance') -> FeatureFlagWithMaintenance NOTIFICATIONS = 'NOTIFICATIONS', // multivariate ('on', 'off', 'maintenance') -> FeatureFlagWithMaintenance STORAGE = 'STORAGE', // multivariate ('on', 'off', 'maintenance') -> FeatureFlagWithMaintenance @@ -12,6 +13,5 @@ export enum FeatureFlagKey { POST_TRANSLATION = 'POST_TRANSLATION', // boolean NEW_HOME_FEED = 'NEW_HOME_FEED', // multivariate ('control', 'test') -> FeatureFlagAB TASK_CONTACT_CTA = 'TASK_CONTACT_CTA', // boolean - EVENTS = 'EVENTS', // boolean CHALLENGES_CAROUSEL = 'CHALLENGES_CAROUSEL', // boolean } diff --git a/core/screens/act/ActSection.tsx b/core/screens/act/ActSection.tsx index 7602512ac5bb1e79fefab001f3cc66bdde7f2eb5..5b9bc9d2b75687815b700e681328767f2697403e 100644 --- a/core/screens/act/ActSection.tsx +++ b/core/screens/act/ActSection.tsx @@ -10,7 +10,6 @@ import RecommendedChallenges from '@holi-apps/challenges/components/RecommendedC import DonationUpdates from '@holi-apps/donations/components/DonationUpdates' import VolunteeringRecos from '@holi-apps/volunteering/components/VolunteeringRecos' import EventCarousel from '@holi-apps/events/components/EventCarousel' -import { useFeatureFlag } from '@holi/core/featureFlags/hooks/useFeatureFlag' export enum ActSectionType { VOLUNTEERING = 'VOLUNTEERING', @@ -24,7 +23,7 @@ export const ActSection = ({ type }: { type: ActSectionType }) => { const cardWidth = useCardWidth() const displayVolunteering = useFeatureFlagWithMaintenance(FeatureFlagKey.VOLUNTEERING).isOn const displayDonations = useFeatureFlagWithMaintenance(FeatureFlagKey.DONATIONS).isOn - const displayEvents = useFeatureFlag(FeatureFlagKey.EVENTS) + const displayEvents = useFeatureFlagWithMaintenance(FeatureFlagKey.EVENTS).isOn switch (type) { case ActSectionType.CHALLENGES: diff --git a/holi-apps/events/screens/EventList.tsx b/holi-apps/events/screens/EventList.tsx index ca9505b96787c50cba512494cfecaf4742cdd4db..d63c65c3dfc02be563a2523f982b17f3e34a1ac9 100644 --- a/holi-apps/events/screens/EventList.tsx +++ b/holi-apps/events/screens/EventList.tsx @@ -64,6 +64,7 @@ export const EventList = () => { return ( <Screen preset="scroll" + padding={{ left: 'sm', right: 'sm' }} headerOptions={{ headerTitle: () => ( <Text headingLevel="2" size="lg">