Updated EmptyFlags code example

Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
Andre Wanlin
2022-02-15 06:19:26 -06:00
parent 1c9891e3fb
commit 12dd25c2a1
2 changed files with 6 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-user-settings': patch
---
Updated example code for registering feature flags in the `EmptyFlags` component
@@ -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' }],
});
`;