Skip to content

Commit

Permalink
docs: ✏️ fix FeaturesProvider import (#649)
Browse files Browse the repository at this point in the history
feature-toggle-jsx README example import and usage of FeaturesProvider
was wrong, this commit will change FeatureProvider to FeaturesProvider

BREAKING CHANGE: 🧨 none

✅ Closes: #648

Co-authored-by: Maciej Małkowski <maciej.malkowski@agoda.com>
  • Loading branch information
samyilias and matmalkowski authored Jun 9, 2021
1 parent bc0060d commit bb7a408
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/feature-toggle-jsx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default withFeature(ImagePreviewComponent, "preview", _ => _.perPage == 2

```jsx
// App
import { FeatureProvider } from "feature-toggle-jsx"
import { FeaturesProvider } from "feature-toggle-jsx"

import ChatComponent from "./ChatComponent"
import ImagePreviewComponent from "./ImagePreviewComponent"
Expand All @@ -59,11 +59,11 @@ const features = {
...

<App>
<FeatureProvider features={features}>
<FeaturesProvider features={features}>
<ChatComponent />
...
<ImagePreviewComponent otherProps={...}>
</FeatureProvider>
</FeaturesProvider>
</App>
```

Expand Down

0 comments on commit bb7a408

Please sign in to comment.