Incorporated the feedback.

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-06-08 15:42:05 +02:00
parent ecb2c3104d
commit abf96994ee
7 changed files with 40 additions and 40 deletions
+8 -5
View File
@@ -18,8 +18,12 @@ customizable elements. For example
```typescript jsx
const plugin = createPlugin({
id: 'my-plugin',
options: {
createButtonTitle: 'Create',
configure(options?: PluginInputOptions): PluginOptions {
const defaultOptions = { createButtonTitle: 'Create' };
if (!options) {
return defaultOptions;
}
return { ...defaultOptions, ...options };
},
});
```
@@ -50,8 +54,7 @@ plugin. Example:
```typescript jsx
import { myPlugin } from '@backstage/my-plugin';
myPlugin.reconfigure((options: CatalogPageOptionsProps) => ({
...options,
myPlugin.reconfigure({
createButtonTitle: 'Maybe Create',
}));
});
```