Updated EmptyFlags code example
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
@@ -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' }],
|
||||
});
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user