Skip to content

Commit

Permalink
Remove FeatureFlagsProvider and related feature flags code
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyurajeesh committed Jan 14, 2025
1 parent fc94d77 commit 902fefd
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 52 deletions.
5 changes: 1 addition & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import PluginEngine from "@/PluginEngine";
import AuthUserProvider from "@/Providers/AuthUserProvider";
import HistoryAPIProvider from "@/Providers/HistoryAPIProvider";
import Routers from "@/Routers";
import { FeatureFlagsProvider } from "@/Utils/featureFlags";
import { handleHttpError } from "@/Utils/request/errorHandler";

import { PubSubProvider } from "./Utils/pubsubContext";
Expand Down Expand Up @@ -48,9 +47,7 @@ const App = () => {
unauthorized={<Routers.PublicRouter />}
otpAuthorized={<Routers.PatientRouter />}
>
<FeatureFlagsProvider>
<Routers.AppRouter />
</FeatureFlagsProvider>
<Routers.AppRouter />
</AuthUserProvider>

{/* Integrations */}
Expand Down
43 changes: 0 additions & 43 deletions src/Utils/featureFlags.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/Facility/models.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { UserBareMinimum } from "@/components/Users/models";

import { FeatureFlag } from "@/Utils/featureFlags";

export interface FacilityModel {
id?: string;
name?: string;
Expand All @@ -20,7 +18,6 @@ export interface FacilityModel {
created_date?: string;
geo_organization?: string;
pincode?: string;
facility_flags?: FeatureFlag[];
latitude?: string;
longitude?: string;
is_public?: boolean;
Expand Down
2 changes: 0 additions & 2 deletions src/components/Users/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Gender, UserType } from "@/components/Users/UserFormValidations";

import { GENDER_TYPES } from "@/common/constants";

import { FeatureFlag } from "@/Utils/featureFlags";
import { Organization } from "@/types/organization/organization";

export type UpdatePasswordForm = {
Expand Down Expand Up @@ -46,7 +45,6 @@ export type UserModel = UserBareMinimum & {
doctor_experience_commenced_on?: string;
doctor_medical_council_registration?: string;
weekly_working_hours?: string | null;
user_flags?: FeatureFlag[];
facilities?: UserFacilityModel[];
organizations?: Organization[];
permissions: string[];
Expand Down

0 comments on commit 902fefd

Please sign in to comment.