-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: [M3-7750] - Update
launchdarkly-react-client-sdk
to latest (
#10165) * update and refactor * use exact version * Added changeset: Update `launchdarkly-react-client-sdk` * fix eslint warnings --------- Co-authored-by: Banks Nussman <banks@nussman.us>
- Loading branch information
1 parent
a53f63b
commit 586a24e
Showing
12 changed files
with
91 additions
and
130 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-10165-tech-stories-1707412665889.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tech Stories | ||
--- | ||
|
||
Update `launchdarkly-react-client-sdk` ([#10165](https://github.com/linode/manager/pull/10165)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as React from 'react'; | ||
|
||
import { useFlags } from 'src/hooks/useFlags'; | ||
|
||
import type { FlagSet } from 'src/featureFlags'; | ||
|
||
export interface WithFeatureFlagProps { | ||
flags: FlagSet; | ||
} | ||
|
||
export const withFeatureFlags = <Props>( | ||
Component: React.ComponentType<Props & WithFeatureFlagProps> | ||
) => { | ||
return (props: Props) => { | ||
const flags = useFlags(); | ||
|
||
return React.createElement(Component, { | ||
...props, | ||
flags, | ||
}); | ||
}; | ||
}; |
55 changes: 0 additions & 55 deletions
55
packages/manager/src/containers/withFeatureFlagConsumer.container.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.