Skip to content

Commit

Permalink
Updated EmptyFlags code example
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
  • Loading branch information
Andre Wanlin committed Feb 15, 2022
1 parent 1c9891e commit 12dd25c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-wombats-talk.md
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings': patch
---

Updated example code for registering feature flags in the `EmptyFlags` component
Expand Up @@ -22,9 +22,7 @@ const EXAMPLE = `import { createPlugin } from '@backstage/core-plugin-api';
export default createPlugin({
id: 'plugin-name',
register({ router, featureFlags }) {
featureFlags.register('enable-example-feature');
},
featureFlags: [{ name: 'enable-example-feature' }],
});
`;

Expand Down

0 comments on commit 12dd25c

Please sign in to comment.