Skip to content

Commit

Permalink
Add new feature flag for organizer form
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Sep 22, 2023
1 parent 02db456 commit e97c7bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/hooks/useFeatureFlag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useCookiesWithOptions } from './useCookiesWithOptions';

const FeatureFlags = {
REACT_CREATE: 'react_create',
ORGANIZER_CREATE: 'organizer_create',
} as const;

const createCookieName = (identifier: string) => `ff_${identifier}`;
Expand Down
4 changes: 2 additions & 2 deletions src/redirects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ const getRedirects = (
source: '/organizer',
destination: '/organizers/create',
permanent: false,
featureFlag: FeatureFlags.REACT_CREATE,
featureFlag: FeatureFlags.ORGANIZER_CREATE,
},
{
source: '/organizer/:organizerId/edit',
destination: '/organizers/:organizerId/edit',
permanent: false,
featureFlag: FeatureFlags.REACT_CREATE,
featureFlag: FeatureFlags.ORGANIZER_CREATE,
},
{
source: '/:language/copyright',
Expand Down

0 comments on commit e97c7bf

Please sign in to comment.