Skip to content

Commit

Permalink
Removed launch-darkly
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed Jan 13, 2025
1 parent 4795fa4 commit a2fa4c9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"html-react-parser": "^5.0.6",
"https-browserify": "^1.0.0",
"jsonschema": "^1.4.0",
"launchdarkly-react-client-sdk": "2.27.0",
"mixpanel-browser": "^2.42.0",
"notistack": "^1.0.3",
"numbro": "^2.4.0",
Expand Down
6 changes: 1 addition & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import "App.css"
import { withLDProvider } from "launchdarkly-react-client-sdk"
import { BrowserRouter as Router, Redirect, Route, Switch } from "react-router-dom"
import mixpanel from "mixpanel-browser"
import { QueryClient, QueryClientProvider } from "react-query"
Expand Down Expand Up @@ -162,7 +161,4 @@ const App: React.FC = () => {

const env = getEnv(EnvKey.REACT_APP_ENV)

export default withLDProvider({
clientSideID:
env === "PROD" ? getEnv(EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_PROD) : getEnv(EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_DEV)
})(App)
export default App
4 changes: 1 addition & 3 deletions src/services/config/hooks/featureFlags.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { useFlags } from "launchdarkly-react-client-sdk"
import { FeatureFlag } from "services/config/constants"

export const useFeatureFlag = (featureFlag: FeatureFlag) => {
const flags = useFlags()
return flags[featureFlag] ?? false
return false
}

0 comments on commit a2fa4c9

Please sign in to comment.