Skip to content

Commit

Permalink
remove client-side ids from examples (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoskow-ld authored Sep 2, 2020
1 parent c724bbc commit 95a8f54
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/async-provider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ yarn
Follow these steps to run the example app:

* In client/index.js, set `clientSideID` to your own Client-side ID. You can find
this in your ld portal under Account settings / Projects.
this in your LaunchDarkly portal under Account settings / Projects.

* Create a flag called `dev-test-flag` in your project. Make sure you
make the flag available to the client-side SDK.
Expand Down
4 changes: 3 additions & 1 deletion examples/async-provider/src/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { asyncWithLDProvider } from 'launchdarkly-react-client-sdk';
import App from '../universal/app';

(async () => {
const LDProvider = await asyncWithLDProvider({ clientSideID: '59b2b2596d1a250b1c78baa4' });
// Set clientSideID to your own Client-side ID. You can find this in
// your LaunchDarkly portal under Account settings / Projects
const LDProvider = await asyncWithLDProvider({ clientSideID: 'YOUR_CLIENT_SIDE_ID_HERE' });

render(
<BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion examples/hoc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ yarn
Follow these steps to run the example app:

* In app.js, set `clientSideID` to your own Client-side ID. You can find
this in your ld portal under Account settings / Projects.
this in your LaunchDarkly portal under Account settings / Projects.

* Create a flag called `dev-test-flag` in your project. Make sure you
make the flag available to the client-side SDK.
Expand Down
4 changes: 2 additions & 2 deletions examples/hoc/src/universal/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ const App = () => (
);

// Set clientSideID to your own Client-side ID. You can find this in
// your ld portal under Account settings / Projects
export default withLDProvider({ clientSideID: '59b2b2596d1a250b1c78baa4' })(App);
// your LaunchDarkly portal under Account settings / Projects
export default withLDProvider({ clientSideID: 'YOUR_CLIENT_SIDE_ID_HERE' })(App);

0 comments on commit 95a8f54

Please sign in to comment.